Skip to content

Merge pull request #66 from crux-bphc/aten2005-patch-1 #24

Merge pull request #66 from crux-bphc/aten2005-patch-1

Merge pull request #66 from crux-bphc/aten2005-patch-1 #24

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
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