Skip to content

Added CI for rpgf3, staging, production, changed docker-compose #1

Added CI for rpgf3, staging, production, changed docker-compose

Added CI for rpgf3, staging, production, changed docker-compose #1

name: staging-deploy-pipeline
on:
push:
branches:
- staging
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH and Redeploy Staging
uses: appleboy/[email protected]
with:
host: ${{ secrets.STAGING_HOST }}
username: ${{ secrets.STAGING_USERNAME }}
key: ${{ secrets.STAGING_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd rpgf4-pw-backend
docker-compose down -v
docker image prune -a --force
git checkout master
git pull origin master
docker-compose up -d --build