Skip to content

Host a staging instance of Rideshare Backend #1

Host a staging instance of Rideshare Backend

Host a staging instance of Rideshare Backend #1

Workflow file for this run

name: Host a staging instance of Rideshare Backend
on: workflow_dispatch
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/rideshare-backend-dev
git reset --hard HEAD
GIT_SSH_COMMAND="ssh -i /home/ubuntu/.ssh/gh-actions -o IdentitiesOnly=yes" git pull
docker compose --profile staging down
docker compose --profile staging up --build -d