Skip to content

Commit

Permalink
Make workflow push arm64 image (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ay4toh5i authored Oct 22, 2022
1 parent dcca4de commit 40e1a30
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Publish to Github Packages
run: |
set -o errexit
Expand All @@ -81,7 +81,4 @@ jobs:
# Push to the remote repo
# This assumes a higher version will always be tagged later
echo "Publishing $IMAGE_ID:$VERSION"
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:latest
docker push $IMAGE_ID:$VERSION
docker push $IMAGE_ID:latest
docker buildx build . --platform linux/amd64,linux/arm64 --tag $IMAGE_ID:$VERSION --tag $IMAGE_ID:latest --push

0 comments on commit 40e1a30

Please sign in to comment.