Skip to content

Commit 805675b

Browse files
authored
branch-build-push
1 parent 74a2816 commit 805675b

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed
Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Docker Hub CI
33
on:
44
push:
55
branches: [ "main" ]
6-
tags: [ "v*" ]
76

87
jobs:
98
build:
@@ -16,18 +15,6 @@ jobs:
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
@@ -44,16 +31,5 @@ jobs:
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

0 commit comments

Comments
 (0)