Update push-node-status-api.yaml
This commit is contained in:
@@ -50,18 +50,17 @@ jobs:
|
||||
- name: New env vars
|
||||
run: echo "RELEASE_TAG='$RELEASE_TAG' GIT_TAG='$GIT_TAG' IMAGE_NAME_AND_TAGS='$IMAGE_NAME_AND_TAGS'"
|
||||
|
||||
|
||||
- name: Remove existing tag if exists
|
||||
run: |
|
||||
if git rev-parse $${{ env.GIT_TAG }} >/dev/null 2>&1; then
|
||||
git push --delete origin $${{ env.GIT_TAG }}
|
||||
git tag -d $${{ env.GIT_TAG }}
|
||||
if git rev-parse $GIT_TAG >/dev/null 2>&1; then
|
||||
git push --delete origin $GIT_TAG
|
||||
git tag -d $GIT_TAG
|
||||
fi
|
||||
|
||||
- name: Create tag
|
||||
run: |
|
||||
git tag -a $${{ env.GIT_TAG }} -m "Version ${{ steps.get_version.outputs.result }}"
|
||||
git push origin $${{ env.GIT_TAG }}
|
||||
git tag -a $GIT_TAG -m "Version ${{ steps.get_version.outputs.result }}"
|
||||
git push origin $GIT_TAG
|
||||
|
||||
- name: BuildAndPushImageOnHarbor
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user