1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 09:45:14 +01:00

Use latest upstream instead of local branch for tags (#153)

This is to avoid accidentally tagging the wrong commit if
the wrong branch is checked out.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
This commit is contained in:
Reinhard Nägele
2019-04-25 19:15:43 +02:00
committed by GitHub
parent e2e0c8cea3
commit 5cb2b8c235

3
tag.sh
View File

@@ -97,7 +97,8 @@ main() {
pushd "$SCRIPT_DIR" > /dev/null
git tag -a -m "Release $tag" "$tag" "${force[@]}"
git fetch "$remote"
git tag -a -m "Release $tag" "$tag" "$remote/master" "${force[@]}"
if [[ -z "$skip_push" ]]; then
git push "$remote" "refs/tags/$tag" "${force[@]}"