Skip to content

Commit

Permalink
Merge pull request #61 from crux-bphc/ci-pipeline
Browse files Browse the repository at this point in the history
Add deploy pipeline
  • Loading branch information
majimearun authored Jul 31, 2023
2 parents c33698f + 78462f7 commit e8194cc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Host a staging instance of the API

on: workflow_dispatch

jobs:
staging:
name: Build and deploy to staging
runs-on: ubuntu-latest
steps:
- name: ssh into machine, and clone repo
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /home/ubuntu/clones
cd chronofactorem-rewrite
git reset --hard HEAD
git pull
docker compose --profile ingestion down
docker compose --profile prod down
docker compose --profile prod up --build

0 comments on commit e8194cc

Please sign in to comment.