Skip to content

staging-deploy-only #12

staging-deploy-only

staging-deploy-only #12

name: staging-deploy-only
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH and Redeploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.STAGING_HOST }}
username: ${{ secrets.STAGING_USERNAME }}
key: ${{ secrets.STAGING_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd QAcc-BE
git checkout staging
git pull
docker compose -f docker-compose-staging.yml pull
docker compose -f docker-compose-staging.yml up --force-recreate -d
docker image prune -a --force