Skip to content

Commit 4a50c2a

Browse files
authored
SRE-1164 helm package update (#51)
* SRE-1164 helm package make version on tags
1 parent d0ebfa4 commit 4a50c2a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gflows/libs/helm_steps.lib.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
---
99
#@ def _update_helmchart(version):
10+
if: github.ref_type == 'tag'
1011
name: #@ "Publish helm chart"
1112
uses: peter-evans/repository-dispatch@v2
1213
with:

github-sample/workflows/build-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ jobs:
982982
with:
983983
src: ghcr.io/covergo/auth:${{ needs.version.outputs.app_version }}
984984
dst: ${{ steps.alicloud-tags-auth-service.outputs.docker_image_ali_cloud_tags }}
985-
- name: Publish helm chart
985+
- if: github.ref_type == 'tag'
986+
name: Publish helm chart
986987
uses: peter-evans/repository-dispatch@v2
987988
with:
988989
event-type: helm_release
@@ -1111,7 +1112,8 @@ jobs:
11111112
with:
11121113
src: ghcr.io/covergo/auth-predeployment:${{ needs.version.outputs.app_version }}
11131114
dst: ${{ steps.alicloud-tags-auth-predeployment.outputs.docker_image_ali_cloud_tags }}
1114-
- name: Publish helm chart
1115+
- if: github.ref_type == 'tag'
1116+
name: Publish helm chart
11151117
uses: peter-evans/repository-dispatch@v2
11161118
with:
11171119
event-type: helm_release

0 commit comments

Comments
 (0)