Update rpgf4-staging-deploy.yml #8
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: rf4-deploy-pipeline | |
on: | |
push: | |
branches: | |
- rf4 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH and Redeploy rf4 | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.PROD_HOST }} | |
username: ${{ secrets.PROD_USERNAME }} | |
key: ${{ secrets.PROD_PRIVATE_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
script: | | |
cd rpgf4-pw-backend | |
docker-compose down -v | |
docker image prune -a --force | |
git checkout rf4 | |
git reset --hard origin/rf4 | |
git pull origin rf4 | |
docker-compose build --no-cache | |
docker-compose up -d |