Skip to content

Commit

Permalink
Merge pull request #2 from datasektionen/autodeploy
Browse files Browse the repository at this point in the history
Add autodeploy and change a default URL
  • Loading branch information
foodelevator authored Sep 17, 2023
2 parents 390fa81 + aaa540b commit fb909f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
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/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
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
port: process.env.PORT || 5000,

// Hostname of the Taitan instance, and whether to communicate over HTTPS with it
taitanUrl: process.env.TAITAN_URL || "https://taitan.datasektionen.se",
taitanUrl: process.env.TAITAN_URL || "https://styrdokument-taitan.mjukglass.datasektionen.se",

// The name of the template engine as it's called by consolidate.js, may differ from extension
// Default template file to look for in subdirectories
Expand Down

0 comments on commit fb909f1

Please sign in to comment.