Skip to content

Commit 729bd2b

Browse files
committed
push only on tags
1 parent e0e7001 commit 729bd2b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ name: Docker Build and Push
22

33
on:
44
push:
5-
branches: ["**"]
6-
pull_request:
7-
branches: ["**"]
8-
# Uncomment below to only run on tags (releases)
9-
# push:
10-
# tags: ["v*"]
5+
tags: ["v*"]
116

127
permissions:
138
contents: read
@@ -33,4 +28,6 @@ jobs:
3328
with:
3429
context: .
3530
push: true
36-
tags: ghcr.io/${{ github.repository }}:latest
31+
tags: |
32+
ghcr.io/${{ github.repository }}:latest
33+
ghcr.io/${{ github.repository }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)