We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981ccce commit 2156838Copy full SHA for 2156838
codefresh.yml
@@ -78,6 +78,22 @@ steps:
78
stage: release
79
steps:
80
81
+ add_git_tag:
82
+ title: "Adding Git tag..."
83
+ stage: release
84
+ image: codefreshio/ci-helpers
85
+ commands:
86
+ - source /get-token/get-gh-token.sh
87
+ - |
88
+ curl --fail -X POST -d '{"ref": "refs/tags/${{SERVICE_VERSION}}","sha": "${{CF_REVISION}}"}' -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/git/refs
89
+ when:
90
+ branch:
91
+ only: [master]
92
+ steps:
93
+ - name: validate_version
94
+ on:
95
+ - success
96
+
97
push_image_prod:
98
type: push
99
title: "Pushing the image to the public registry..."
0 commit comments