Skip to content

Merge pull request #62 from pirates-ophase/crew2024 #22

Merge pull request #62 from pirates-ophase/crew2024

Merge pull request #62 from pirates-ophase/crew2024 #22

# adapted from https://github.com/dokku/github-action/blob/db5e3b84461e5e73c56d8b0f6a67aab0df25256c/example-workflows/simple.yml
name: 'deploy-develop'
on:
push:
branches:
- develop
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
branch: develop
# only extracting the server address to a secret avoids leaking it in the logs
git_remote_url: ssh://dokku@${{ secrets.DOKKU_SERVER_ADDRESS }}/pirates
ssh_private_key: ${{ secrets.DOKKU_DEPLOYMENT_KEY }}