Skip to content

Commit

Permalink
Create wvm-blockscout-frontend-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
allnil authored May 30, 2024
1 parent 2e9728e commit 5fa395a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/wvm-blockscout-frontend-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Remote update execution
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

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 }}
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

0 comments on commit 5fa395a

Please sign in to comment.