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