-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from datasektionen/autodeploy
Add autodeploy and change a default URL
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/github-action@v1.4.0 | ||
with: | ||
ssh_private_key: ${{ secrets.MJUKGLASS_GLOBAL_DEPLOY_KEY }} | ||
git_remote_url: ssh://dokku@mjukglass.datasektionen.se/styrdokument | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters