-
Notifications
You must be signed in to change notification settings - Fork 31
36 lines (30 loc) · 1.03 KB
/
dokku-dev-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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' }}