From 107a17dd85272063d63a5a00742fa4ff4bd8843f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skyler=20M=C3=A4ntysaari?= Date: Thu, 2 Sep 2021 22:30:20 +0300 Subject: [PATCH] CI: Add arm platform too. Fixes: #518 --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 252502c..86eb8ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,8 @@ jobs: run: | DOCKER_IMAGE=phusion/baseimage GIT_BRANCH=${GITHUB_REF##*/} + # Set the platforms to build for here and thus reduce duplicating it. + PLATFORMS=amd64,arm,arm64 TAGS="${DOCKER_IMAGE}:${GIT_BRANCH}, ghcr.io/${{ github.repository_owner }}/baseimage:${GIT_BRANCH}" # Set output parameters. @@ -32,11 +34,13 @@ jobs: echo ::set-output name=branch::${GIT_BRANCH} echo ::set-output name=docker_image::${DOCKER_IMAGE} fi - + echo ::set-output name=platforms::${PLATFORMS} + + - name: Set up QEMU uses: docker/setup-qemu-action@v1 with: - platforms: amd64,arm64 + platforms: ${{ steps.prep.outputs.platforms }} - name: Login to GHCR (Github Container Registry) uses: docker/login-action@v1 @@ -67,6 +71,6 @@ jobs: with: builder: ${{ steps.buildx.outputs.name }} context: image - platforms: amd64,arm64 + platforms: ${{ steps.prep.outputs.platforms }} push: ${{ steps.prep.outputs.push }} tags: ${{ steps.prep.outputs.tags }}