Skip to content

Merge pull request #78 from crux-bphc/feat/potd-stats #32

Merge pull request #78 from crux-bphc/feat/potd-stats

Merge pull request #78 from crux-bphc/feat/potd-stats #32

Workflow file for this run

name: Host a staging instance of Surge
on:
push:
branches:
- main
jobs:
staging:
name: Build and deploy to staging
runs-on: self-hosted
steps:
- name: Pull latest code and deploy with Docker
run: |
cd /home/ubuntu/clones/surge-staging
git reset --hard HEAD
GIT_SSH_COMMAND="ssh -i /home/ubuntu/.ssh/gh-actions -o IdentitiesOnly=yes" git pull
docker compose --profile prod down
docker compose --profile prod up --build -d