Skip to content

Commit

Permalink
Configure deployment to Dokku
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed May 22, 2024
1 parent 463016a commit e186d10
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deployment

on:
push:
branches: interim
workflow_dispatch:

jobs:
test:
uses: SeaGL/osem/.github/workflows/spec.yml@interim

deploy:
needs: test
concurrency: { group: production, cancel-in-progress: true }
environment: production
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
with:
fetch-depth: 0 # Complete

- name: Push to Dokku
uses: dokku/github-action@master
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
git_remote_url: 'ssh://dokku@dokku.seagl.org/osem'
git_push_flags: '--force'
branch: main
7 changes: 1 addition & 6 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Specs

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_call:
workflow_dispatch:

jobs:
Expand Down
7 changes: 6 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
{
"plan": "sendgrid"
}
]
],
"healthchecks": {
"web": [
{ "type": "startup", "path": "/", "initialDelay": 5, "attempts": 6 }
]
}
}

0 comments on commit e186d10

Please sign in to comment.