From 5f5eb2ad017c5c96c6aedad8527a76cc852b4813 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 3 Feb 2024 15:56:15 -0500 Subject: [PATCH] multi-arch init --- .github/workflows/latest.yml | 5 ++++- .github/workflows/push.yml | 4 +++- Makefile | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml index bba6a6dc..5b18d8a3 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/latest.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - multiarch jobs: lint: runs-on: ubuntu-latest @@ -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 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index fcc37bac..a9ce218f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 }} diff --git a/Makefile b/Makefile index 8fecf993..241e121a 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +ARCH := linux/arm64 REPO := amancevice/superset PYTHON_VERSION := $(shell cat .python-version) SUPERSET_VERSION := $(shell grep apache-superset Pipfile | grep -Eo '[0-9.]+') @@ -5,7 +6,7 @@ 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) \ .