From 5fa395a5df5c69a108612fe6ad64c3943a7555c7 Mon Sep 17 00:00:00 2001 From: Nil Medvedev Date: Thu, 30 May 2024 18:27:02 +0100 Subject: [PATCH] Create wvm-blockscout-frontend-deploy.yml --- .../wvm-blockscout-frontend-deploy.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/wvm-blockscout-frontend-deploy.yml diff --git a/.github/workflows/wvm-blockscout-frontend-deploy.yml b/.github/workflows/wvm-blockscout-frontend-deploy.yml new file mode 100644 index 0000000000..ffe70ecf6d --- /dev/null +++ b/.github/workflows/wvm-blockscout-frontend-deploy.yml @@ -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