diff --git a/.github/workflows/push-node-status-api.yaml b/.github/workflows/push-node-status-api.yaml index 75e49ac0ce..e5715ed692 100644 --- a/.github/workflows/push-node-status-api.yaml +++ b/.github/workflows/push-node-status-api.yaml @@ -50,7 +50,7 @@ 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 + - name: Remove existing tag if exists, then create run: | if git rev-parse "$GIT_TAG" >/dev/null 2>&1; then echo "Tag '$GIT_TAG' already exists, deleting" @@ -58,14 +58,12 @@ jobs: git tag -d "$GIT_TAG" echo "Tag '$GIT_TAG' deleted" else - echo "Tag '$GIT_TAG' does not exist. Nothing to do." + echo "Tag '$GIT_TAG' does not exist, creating it" + git tag -a $GIT_TAG -m "Version ${{ steps.get_version.outputs.result }}" + git push origin $GIT_TAG + echo "Tag '$GIT_TAG' created" fi - - name: Create tag - run: | - git tag -a $GIT_TAG -m "Version ${{ steps.get_version.outputs.result }}" - git push origin $GIT_TAG - - name: BuildAndPushImageOnHarbor run: | docker build -f ${{ env.WORKING_DIRECTORY }}/Dockerfile . -t harbor.nymte.ch/nym/${{ env.IMAGE_NAME_AND_TAGS }} -t harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }}:latest