Skip to content

Commit f2993fc

Browse files
authored
ci: fix release (#249)
1 parent d0a22e8 commit f2993fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v*'
67

78
env:
89
REGISTRY: ghcr.io
@@ -11,6 +12,7 @@ env:
1112
jobs:
1213
build-and-push-image:
1314
runs-on: ubuntu-latest
15+
if: ${{ github.ref == 'refs/heads/main' }}
1416
permissions:
1517
contents: read
1618
packages: write
@@ -37,7 +39,7 @@ jobs:
3739
with:
3840
context: .
3941
push: true
40-
tags: ${{ steps.meta.outputs.tags }}
42+
tags: ${{ github.event.release.tag_name }}
4143
labels: ${{ steps.meta.outputs.labels }}
4244

4345
create-pr-to-update-kustomization:

0 commit comments

Comments
 (0)