File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ name: Docker Hub CI
33on :
44 push :
55 branches : [ "main" ]
6- tags : [ "v*" ]
76
87jobs :
98 build :
1615 -
1716 name : Set up QEMU
1817 uses : docker/setup-qemu-action@v2
19- -
20- name : Docker meta
21- id : meta
22- uses : docker/metadata-action@v4
23- with :
24- images : |
25- ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
26- tags : |
27- type=semver,pattern={{version}}
28- type=semver,pattern={{major}}.{{minor}}
29- flavor : |
30- latest=auto
3118 -
3219 name : Set up Docker Buildx
3320 uses : docker/setup-buildx-action@v2
4431 file : ./app/Dockerfile
4532 context : ./app
4633 push : true
47- if : ${{ github.event.release.tag_name }} == ''
4834 tags : ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest
4935 platforms : linux/amd64,linux/arm64
50- -
51- name : Tagged build and push
52- uses : docker/build-push-action@v3
53- with :
54- file : ./app/Dockerfile
55- context : ./app
56- push : true
57- if : ${{ github.event.release.tag_name }} != ''
58- tags : ${{ steps.meta.outputs.tags }}
59- platforms : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments