Skip to content

Commit

Permalink
Use official dokku action
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerkrewson committed Jul 28, 2024
1 parent e08f6aa commit f40111d
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,31 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: CamiloGarciaLaRotta/watermelon-http-client@v1
id: request
with:
url: "https://spyfall.tannerkrewson.com/lock"
method: post
headers: '{"Content-Type": "application/json" }'
data: '{ "password": "${{ secrets.ADMIN_PASSWORD }}" }'
# - uses: CamiloGarciaLaRotta/watermelon-http-client@v1
# id: request
# with:
# url: "https://spyfall.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: Print the response code of the lock
# run: echo ${{ steps.request.outputs.status }}
# shell: bash

- name: Wait 10 minutes for in-progress games to finish up (wait 8m + 2m for deploy)
uses: jakejarvis/[email protected]
with:
time: "8m"
# - name: Wait 10 minutes for in-progress games to finish up (wait 8m + 2m for deploy)
# uses: jakejarvis/[email protected]
# with:
# time: "8m"

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: "prod"
fetch-depth: "0"

- name: Dokku deploy
uses: vitalyliber/[email protected]
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
HOST: 134.209.222.77
PROJECT: spyfall
BRANCH: prod
uses: dokku/github-action@master
with:
git_remote_url: "ssh://[email protected]:22/spyfall"
ssh_private_key: ${{ secrets.PRIVATE_KEY }}
branch: "prod"

0 comments on commit f40111d

Please sign in to comment.