Skip to content

fix (tasks): gslides oauth config #65

fix (tasks): gslides oauth config

fix (tasks): gslides oauth config #65

name: Deploy Backend to Staging
on:
push:
branches:
- staging
paths:
- "src/server/**"
- ".github/workflows/deploy-stag-backend.yaml"
jobs:
deploy:
name: Deploy Backend to Staging VM
runs-on: ubuntu-latest
steps:
- name: Deploy over SSH
uses: appleboy/[email protected]
with:
host: ${{ secrets.STAG_SERVER_VM_HOST }}
username: ${{ secrets.STAG_SERVER_VM_USER }}
key: ${{ secrets.STAG_SERVER_VM_SSH_PRIVATE_KEY }}
script: |
set -e
cd ~/sentient
git pull origin staging
cd src/server
echo "Building and deploying the backend..."
docker compose down
docker compose up --build -d
echo "Cleaning up old Docker images..."
docker image prune -f