-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (32 loc) · 976 Bytes
/
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
name: Deploy
on:
workflow_run:
workflows: ["Tests"]
branches: [master]
types:
- completed
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy to Heroku
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "start-makeitreal"
heroku_email: "[email protected]"
- name: Deploy to Digital Ocean 2
uses: idoberko2/dokku-deploy-github-action@v1
with:
ssh-private-key: ${{ secrets.DOKKU_SSH_PK }}
dokku-host: '137.184.202.235'
app-name: 'start'
- run: sudo git remote rm deploy
- name: Deploy to Digital Ocean 0
uses: idoberko2/dokku-deploy-github-action@v1
with:
ssh-private-key: ${{ secrets.DOKKU_SSH_PK }}
dokku-host: '165.227.213.207'
app-name: 'start'