Skip to content

Commit

Permalink
Merge pull request #46 from datasektionen/autodeploy
Browse files Browse the repository at this point in the history
Add autodeploy
  • Loading branch information
Herkarl authored Sep 8, 2023
2 parents 3f2b48f + cc00c39 commit 30d59ea
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# See the following link for documentation:
# https://github.com/marketplace/actions/dokku
- name: Push to mjukglass
uses: dokku/[email protected]
with:
ssh_private_key: ${{ secrets.MJUKGLASS_GLOBAL_DEPLOY_KEY }}
git_remote_url: ssh://[email protected]/calypso
# force might feel risky, but there is no good reason why the server
# should ever not be a mirror of the deploy branch. And the errors we
# could get otherwise would probably be nasty to deal with
git_push_flags: --force

0 comments on commit 30d59ea

Please sign in to comment.