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 d647b15 commit 61ebee6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/Update-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,31 @@ jobs:
runs-on: [kuberunner]
needs: tag-image
steps:

- name: Checkout repo
uses: actions/checkout@v4

- name: Echo tag
run: echo ${{ needs.tag-image.outputs.image_tag }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/Dockerfile
push: true
tags: ghcr.io/gear-tech/node:latest, ${{ needs.tag-image.outputs.image_tag }}
- name: SSH into VM
uses: appleboy/[email protected]
with:
Expand All @@ -31,3 +56,5 @@ jobs:
key: ${{ secrets.VARA_SSH_PRIVATE_KEY }}
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 docker-compose -f /home/gear/docker-compose.yaml up -d

0 comments on commit 61ebee6

Please sign in to comment.