Skip to content

Commit

Permalink
Update Update-testnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfilyanin authored Sep 19, 2023
1 parent 6f938ac commit 21c0be9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/Update-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ jobs:
tags: ghcr.io/gear-tech/node:latest, ${{ needs.tag-image.outputs.image_tag }}
- name: SSH into VM
uses: appleboy/[email protected]
env:
GITHUB_IMAGE_TAG: ${{ needs.tag-image.outputs.image_tag }}
with:
host: ${{ secrets.VARA_VALIDATOR_8 }}
username: ${{ secrets.SSH_VARA_USERNAME }}
key: ${{ secrets.VARA_SSH_PRIVATE_KEY }}
envs: GITHUB_IMAGE_TAG
script: |
sudo docker-compose -f /home/gear/docker-compose.yaml down
sudo sed -i 's|"ghcr.io/gear-tech/node:.*"|${{ steps.image-tag.outputs.image_tag }}|' /home/gear/docker-compose.yaml
sudo sed -i 's|"ghcr.io/gear-tech/node:.*"|$GITHUB_IMAGE_TAG|' /home/gear/docker-compose.yaml
sudo docker-compose -f /home/gear/docker-compose.yaml up -d

0 comments on commit 21c0be9

Please sign in to comment.