Update push-node-status-api.yaml

This commit is contained in:
Mark Sinclair
2025-07-11 11:46:21 +01:00
committed by GitHub
parent 8d10cf70e9
commit 8d1a16eb02
+5 -7
View File
@@ -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