From 82a9bf0c5dc52e5a7a4cb72cc2a2473e391f6fb3 Mon Sep 17 00:00:00 2001 From: sergey filyanin Date: Tue, 19 Sep 2023 13:33:29 +0200 Subject: [PATCH] Update Update-testnet.yml --- .github/workflows/Update-testnet.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Update-testnet.yml b/.github/workflows/Update-testnet.yml index 4b0d07d0c25..447577677a5 100644 --- a/.github/workflows/Update-testnet.yml +++ b/.github/workflows/Update-testnet.yml @@ -20,18 +20,20 @@ jobs: run: echo "tag=ghcr.io/gear-tech/node:0.1.0-`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_OUTPUT update-validator: - runs-on: [kuberunner] + runs-on: ubuntu-latest needs: tag-image steps: - name: SSH into VM uses: appleboy/ssh-action@v1.0.0 + env: + NEW_IMAGE: ${{ needs.tag-image.outputs.image_tag }} with: host: ${{ secrets.VARA_VALIDATOR_8 }} username: ${{ secrets.SSH_VARA_USERNAME }} key: ${{ secrets.VARA_SSH_PRIVATE_KEY }} + envs: NEW_IMAGE script: | - sudo echo "tag=ghcr.io/gear-tech/node:0.1.0-`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_IMAGE_TAG sudo docker-compose -f /home/gear/docker-compose.yaml down - sudo sed -i 's|ghcr.io/gear-tech/node:.*|$GITHUB_IMAGE_TAG|' /home/gear/docker-compose.yaml + sudo sed -i 's|ghcr.io/gear-tech/node:.*|$NEW_IMAGE|' /home/gear/docker-compose.yaml sudo docker-compose -f /home/gear/docker-compose.yaml up -d