diff --git a/.github/workflows/Update-testnet.yml b/.github/workflows/Update-testnet.yml index cfc58e3b99e..7c1fda79acc 100644 --- a/.github/workflows/Update-testnet.yml +++ b/.github/workflows/Update-testnet.yml @@ -34,4 +34,6 @@ jobs: key: ${{ secrets.VARA_SSH_PRIVATE_KEY }} envs: NEW_IMAGE script: | - echo $NEW_IMAGE + sudo docker-compose -f /home/gear/docker-compose.yaml down + 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