Skip to content

Commit

Permalink
Merge pull request #271 from amancevice/multiarch
Browse files Browse the repository at this point in the history
Multiarch init
  • Loading branch information
amancevice authored Feb 4, 2024
2 parents 9475c9f + 7d7dc68 commit beb10d5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ on:
push:
branches:
- main
- multiarch
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install -g dockerlint
- run: dockerlint
build:
Expand All @@ -20,4 +21,6 @@ jobs:
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
platforms: linux/amd64
platforms: |
linux/amd64
linux/arm64
8 changes: 5 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm install -g dockerlint
- run: dockerlint
build-push:
Expand All @@ -30,7 +30,9 @@ jobs:
echo "tags=$tags" >> "$GITHUB_OUTPUT"
- uses: docker/build-push-action@v5
with:
platforms: linux/amd64
platforms: |
linux/amd64
linux/arm64
push: true
tags: |
${{ steps.meta.outputs.tags }}
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ARCH := linux/arm64
REPO := amancevice/superset
PYTHON_VERSION := $(shell cat .python-version)
SUPERSET_VERSION := $(shell grep apache-superset Pipfile | grep -Eo '[0-9.]+')

build: requirements-dev.txt
docker buildx build \
--build-arg PYTHON_VERSION=$(PYTHON_VERSION) \
--platform linux/amd64 \
--platform $(ARCH) \
--tag $(REPO) \
--tag $(REPO):$(SUPERSET_VERSION) \
.
Expand Down

0 comments on commit beb10d5

Please sign in to comment.