Skip to content

Update test.yml

Update test.yml #21

Workflow file for this run

name: deploy-pipeline
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH and Redeploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.PROD_HOST }}
username: ${{ secrets.PROD_USERNAME }}
key: ${{ secrets.PROD_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd pw-backend
docker-compose down
git checkout master
git pull origin master
docker-compose build
docker-compose up -d