Update GHA dokku deploy #7
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: 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: Push to dokku | |
uses: dokku/github-action@v1 | |
with: | |
git_remote_url: 'ssh://dokku@134.209.222.77:22/drawphone' | |
ssh_private_key: ${{ secrets.PRIVATE_KEY }} | |
branch: prod |