Skip to content

Commit

Permalink
Clean up deploy script
Browse files Browse the repository at this point in the history
Set the environment more simply and correctly, pass secrets through
the `env` as documented, explicitly mark the URL in `curl` call.

Issue #1410
  • Loading branch information
bickelj committed Jan 9, 2025
1 parent cdb2fb8 commit 7edf386
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
jobs:
deploy-to-test-env:
runs-on: ubuntu-latest
environment:
name: test
environment: Test
name: deploy-to-test
steps:
- uses: kachick/[email protected]
timeout-minutes: 24
env:
TOKEN: ${{ secrets.DIGITAL_OCEAN_TOKEN }}
APP_ID: ${{ secrets.DIGITAL_OCEAN_APP_ID }}
with:
wait-list: |
[
Expand All @@ -31,4 +33,4 @@ jobs:
}
]
- run: |
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${{ secrets.DIGITAL_OCEAN_TOKEN }}" "https://api.digitalocean.com/v2/apps/${{ secrets.DIGITAL_OCEAN_APP_ID }}/deployments" -d '{ "force_build": true }' | jq -e .deployment.id
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" --url "https://api.digitalocean.com/v2/apps/$APP_ID/deployments" -d '{ "force_build": true }' | jq -e .deployment.id

0 comments on commit 7edf386

Please sign in to comment.