Skip to content

Commit 230156e

Browse files
author
Bennett Goble
committed
chore: promote on tag
1 parent 55614d9 commit 230156e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ name: Test & Build
33
on:
44
push:
55
branches: main
6+
tags:
7+
- 'v*'
68
pull_request:
7-
branches: main
89

910
jobs:
1011
test:
@@ -20,8 +21,8 @@ jobs:
2021
image: platform/nginx-proxy
2122
platforms: linux/amd64,linux/arm64
2223
tags: latest
23-
push: ${{ github.event_name != 'pull_request' }}
24-
promote: ${{ github.event_name != 'pull_request' }}
24+
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
25+
promote: ${{ startsWith(github.ref, 'refs/tags/v') }}
2526
secrets:
2627
github_pat: ${{ secrets.SHARED_GITHUB_TOKEN }}
2728
jfrog_token: ${{ secrets.SHARED_JFROG_TOKEN }}

0 commit comments

Comments
 (0)