Use new data for ballot #12
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: 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 staging | |
git reset --hard origin/staging | |
git pull origin staging | |
docker-compose build --no-cache | |
docker-compose up -d |