-
Notifications
You must be signed in to change notification settings - Fork 86
42 lines (35 loc) · 1.26 KB
/
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
37
38
39
40
41
42
name: CD
on:
push:
branches:
- prod
jobs:
build:
runs-on: ubuntu-latest
steps:
#- uses: CamiloGarciaLaRotta/watermelon-http-client@v1
# id: request
# with:
# url: "https://drawphone.tannerkrewson.com/lock"
# method: post
# headers: '{"Content-Type": "application/json" }'
# data: '{ "password": "${{ secrets.ADMIN_PASSWORD }}" }'
#- name: Print the response code of the lock
# run: echo ${{ steps.request.outputs.status }}
# shell: bash
#- name: Wait 15 minutes for in-progress games to finish up (wait 14m + 1m for deploy)
# uses: jakejarvis/wait-action@v0.1.0
# with:
# time: "14m"
- uses: actions/checkout@v2
with:
ref: "prod"
fetch-depth: "0"
- name: Dokku deploy
uses: vitalyliber/dokku-github-action@v4.0
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
HOST: 134.209.222.77
PROJECT: drawphone
BRANCH: prod