Merge pull request #364 from datasektionen/main #233
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
name: Deploy Production | |
on: | |
push: | |
branches: [ production ] | |
# Can be activated manually | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# https://github.com/marketplace/actions/dokku-deploy-action?version=v1 | |
- name: Push to medusa | |
uses: idoberko2/dokku-deploy-github-action@v1 | |
with: | |
ssh-private-key: ${{ secrets.MEDUSA_SSH_KEY }} | |
dokku-user: 'dokku' | |
remote-branch: 'master' | |
git-push-flags: '--force' | |
dokku-host: 'medusa.datasektionen.se' | |
app-name: 'ddagen' |