Skip to content

Commit

Permalink
Merge pull request #89 from madflojo/armsupport
Browse files Browse the repository at this point in the history
Adding ARM support for Docker Build
  • Loading branch information
madflojo authored Feb 10, 2024
2 parents 85cd3de + 55a2dce commit 4d84ec8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- main
tags:
- v*
jobs:
build-latest:
runs-on: ubuntu-latest
Expand All @@ -16,9 +18,20 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
- name: Build and push (main)
id: docker_build
if: github.ref == 'refs/heads/main'
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: true
tags: madflojo/tarmac:unstable
- name: Build and push (tag)
id: docker_build_tag
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: true
# tag with the git tag v*
tags: madflojo/tarmac:${{ github.ref_name }}

0 comments on commit 4d84ec8

Please sign in to comment.