Skip to content

Commit 4d84ec8

Browse files
authored
Merge pull request #89 from madflojo/armsupport
Adding ARM support for Docker Build
2 parents 85cd3de + 55a2dce commit 4d84ec8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/docker.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
tags:
7+
- v*
68
jobs:
79
build-latest:
810
runs-on: ubuntu-latest
@@ -16,9 +18,20 @@ jobs:
1618
with:
1719
username: ${{ secrets.DOCKERHUB_USERNAME }}
1820
password: ${{ secrets.DOCKERHUB_TOKEN }}
19-
- name: Build and push
21+
- name: Build and push (main)
2022
id: docker_build
23+
if: github.ref == 'refs/heads/main'
2124
uses: docker/build-push-action@v2
2225
with:
26+
platforms: linux/amd64,linux/arm64
2327
push: true
2428
tags: madflojo/tarmac:unstable
29+
- name: Build and push (tag)
30+
id: docker_build_tag
31+
if: startsWith(github.ref, 'refs/tags/v')
32+
uses: docker/build-push-action@v2
33+
with:
34+
platforms: linux/amd64,linux/arm64
35+
push: true
36+
# tag with the git tag v*
37+
tags: madflojo/tarmac:${{ github.ref_name }}

0 commit comments

Comments
 (0)