Merge pull request #39 from codingknite/rollback-branch #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WVM Blockscout frontend deploy | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SERVER_IP }} | |
username: ${{ secrets.SERVER_USERNAME }} | |
key: ${{ secrets.SERVER_KEY }} | |
passphrase: ${{ secrets.SERVER_PASSPHRASE }} | |
script: | | |
cd /home/blockexplorer/code/wvm-blockscout-frontend | |
git checkout main | |
git pull origin main | |
docker build --platform linux/amd64 -t frontend:local . | |
cd /home/blockexplorer/code/wvm-blockscout/docker-compose/prod | |
docker compose up --build -d |