Skip to content

Commit

Permalink
workflows: Publish both linux/arm/v7 and linux/arm64 images
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanConnell committed Mar 20, 2024
1 parent b59009a commit 595fe1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
DOCKER_IMAGE: ryanconnell/concert-watcher
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_TARGET_PLATFORM: linux/arm/v7

steps:
- name: Checkout the code
Expand All @@ -24,7 +23,6 @@ jobs:
if: success()
id: prepare
run: |
echo ::set-output name=docker_platform::${DOCKER_TARGET_PLATFORM}
echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${GITHUB_RUN_NUMBER}
Expand All @@ -38,8 +36,9 @@ jobs:
if: success()
run: |
docker buildx build \
--platform ${{ steps.prepare.outputs.docker_platform }} \
--platform linux/amd64 \
--platform linux/arm/v7 \
--platform linux/arm64 \
--tag ${{ steps.prepare.outputs.docker_image }}:$(git rev-parse "$GITHUB_SHA") \
--tag ${{ steps.prepare.outputs.docker_image }}:$(git rev-parse --short "$GITHUB_SHA") \
--tag ${{ steps.prepare.outputs.docker_image }}:latest \
Expand Down

0 comments on commit 595fe1d

Please sign in to comment.