@@ -3,11 +3,6 @@ name: Build and upload Node Status agent container to harbor.nymte.ch
33on :
44 workflow_dispatch :
55 inputs :
6- gateway_probe_git_ref :
7- type : string
8- default : nym-vpn-core-v1.4.0
9- required : true
10- description : Which gateway probe git ref to build the image with
116 release_image :
127 description : ' Tag image as a release'
138 required : true
4338 VERSION=$(yq -oy '.package.version' ${{ env.WORKING_DIRECTORY }}/Cargo.toml)
4439 echo "result=$VERSION" >> $GITHUB_OUTPUT
4540
46- - name : cleanup-gateway-probe-ref
47- id : cleanup_gateway_probe_ref
48- run : |
49- GATEWAY_PROBE_GIT_REF=${{ github.event.inputs.gateway_probe_git_ref }}
50- GIT_REF_SLUG="${GATEWAY_PROBE_GIT_REF//\//-}"
51- echo "git_ref=${GIT_REF_SLUG}" >> $GITHUB_OUTPUT
52-
53- - name : Set GIT_TAG variable
54- run : echo "GIT_TAG=${{ env.WORKING_DIRECTORY }}-${{ steps.get_version.outputs.result }}-${{ steps.cleanup_gateway_probe_ref.outputs.git_ref }}" >> $GITHUB_ENV
55-
5641 - name : Initialize RELEASE_TAG
5742 run : echo "RELEASE_TAG=" >> $GITHUB_ENV
5843
@@ -61,24 +46,12 @@ jobs:
6146 run : echo "RELEASE_TAG=golden-" >> $GITHUB_ENV
6247
6348 - name : Set IMAGE_NAME_AND_TAGS variable
64- run : echo "IMAGE_NAME_AND_TAGS=${{ env.CONTAINER_NAME }}:${{ env.RELEASE_TAG }}${{ steps.get_version.outputs.result }}-${{ steps.cleanup_gateway_probe_ref.outputs.git_ref }} " >> $GITHUB_ENV
49+ run : echo "IMAGE_NAME_AND_TAGS=${{ env.CONTAINER_NAME }}:${{ env.RELEASE_TAG }}${{ steps.get_version.outputs.result }}" >> $GITHUB_ENV
6550
6651 - name : New env vars
67- run : echo "RELEASE_TAG='$RELEASE_TAG' GIT_TAG='$GIT_TAG' IMAGE_NAME_AND_TAGS='$IMAGE_NAME_AND_TAGS'"
68-
69- # - name: Remove existing tag if exists
70- # run: |
71- # if git rev-parse $${{ env.GIT_TAG }} >/dev/null 2>&1; then
72- # git push --delete origin $${{ env.GIT_TAG }}
73- # git tag -d $${{ env.GIT_TAG }}
74- # fi
75-
76- # - name: Create tag
77- # run: |
78- # git tag -a $${{ env.GIT_TAG }} -m "Version ${{ steps.get_version.outputs.result }}-${{ steps.cleanup_gateway_probe_ref.outputs.git_ref }}"
79- # git push origin $${{ env.GIT_TAG }}
52+ run : echo "RELEASE_TAG='$RELEASE_TAG' IMAGE_NAME_AND_TAGS='$IMAGE_NAME_AND_TAGS'"
8053
8154 - name : BuildAndPushImageOnHarbor
8255 run : |
83- docker build --build-arg GIT_REF=${{ github.event.inputs.gateway_probe_git_ref }} - f ${{ env.WORKING_DIRECTORY }}/Dockerfile . -t harbor.nymte.ch/nym/${{ env.IMAGE_NAME_AND_TAGS }}
56+ docker build -f ${{ env.WORKING_DIRECTORY }}/Dockerfile . -t harbor.nymte.ch/nym/${{ env.IMAGE_NAME_AND_TAGS }}
8457 docker push harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }} --all-tags
0 commit comments