From 221e809da30be6bc675318253fbf05284a581366 Mon Sep 17 00:00:00 2001 From: Mark Sinclair <14054343+mmsinclair@users.noreply.github.com> Date: Thu, 21 Nov 2024 15:52:11 +0000 Subject: [PATCH] Update push-network-monitor.yaml --- .github/workflows/push-network-monitor.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-network-monitor.yaml b/.github/workflows/push-network-monitor.yaml index b1d32dadad4..d23710e77d8 100644 --- a/.github/workflows/push-network-monitor.yaml +++ b/.github/workflows/push-network-monitor.yaml @@ -25,12 +25,12 @@ jobs: git config --global user.email "lawrence@nymtech.net" git config --global user.name "Lawrence Stalder" - - name: Get version from package.json - uses: sergeysova/jq-action@v2 + - name: Get version from cargo.toml + uses: mikefarah/yq@v4.44.5 id: get_version with: - cmd: jq -r '.version' ${{ env.WORKING_DIRECTORY }}/package.json - + cmd: yq -oy '.package.version' ${{ env.WORKING_DIRECTORY }}/nym-network-monitor/Cargo.toml + - name: Check if tag exists run: | if git rev-parse ${{ steps.get_version.outputs.value }} >/dev/null 2>&1; then @@ -52,4 +52,4 @@ jobs: - name: BuildAndPushImageOnHarbor run: | docker build -f nym-network-monitor.dockerfile ${{ env.WORKING_DIRECTORY }} -t harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }}:${{ steps.get_version.outputs.value }} -t harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }}:latest - docker push harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }} --all-tags \ No newline at end of file + docker push harbor.nymte.ch/nym/${{ env.CONTAINER_NAME }} --all-tags