Skip to content

Commit

Permalink
multi-arch init
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Feb 3, 2024
1 parent 9475c9f commit 5f5eb2a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- multiarch
jobs:
lint:
runs-on: ubuntu-latest
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
4 changes: 3 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 5f5eb2a

Please sign in to comment.