Dokku matcloud.xyz deploy #273
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: Dokku matcloud.xyz deploy | |
on: | |
workflow_run: | |
workflows: | |
- Voila test | |
types: [completed] | |
branches: | |
- '*' | |
jobs: | |
Dokku-dev-deploy: | |
name: Dokku dev deploy | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Push to dokku (PR open) | |
uses: dokku/github-action@master | |
with: | |
git_remote_url: 'ssh://[email protected]:22/osscar-quantum-mechanics' | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | |
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }} | |
- name: Push to dokku (PR synchronize) | |
uses: dokku/github-action@master | |
with: | |
git_remote_url: 'ssh://[email protected]:22/osscar-quantum-mechanics' | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | |
if: ${{ github.event_name == 'pull_request' && github.event.action == 'synchronize' }} |