-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 793 Bytes
/
Copy pathcd-dev.yml
File metadata and controls
32 lines (28 loc) · 793 Bytes
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
name: CD-dev
on:
workflow_run:
workflows: ["CI"]
branches: [dev]
types:
- completed
jobs:
on-success:
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
# specify the `main` branch as the remote branch to push to
branch: 'main'
git_remote_url: ${{ secrets.SSH_REMOTE_DEV_URL }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
on-failure:
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'