Skip to content

Commit bb68812

Browse files
Fix PROD deployment for Fly
* Adds a prod-enabled API Token * Start showing the git commit on PROD * decided to enable this because we do show the version number, which would be easily tied back to this repo and a small enough set of commits that attackers would be able to find vulnerable versions of libraries anyway. Git commit SHA gives us extra information that wouldn't be easily available to attackers. * Lets us manually deploy
1 parent 36fa2c7 commit bb68812

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/fly-prod-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name: Fly Prod release
77
on:
88
release:
99
types: [published]
10+
workflow_dispatch:
1011

1112
jobs:
1213
deploy:
@@ -16,6 +17,6 @@ jobs:
1617
steps:
1718
- uses: actions/checkout@v4
1819
- uses: superfly/flyctl-actions/setup-flyctl@master
19-
- run: flyctl deploy --remote-only -c fly.production.toml
20+
- run: flyctl deploy --remote-only -c fly.production.toml --build-arg CI_COMMIT_SHA=`git rev-parse HEAD`
2021
env:
21-
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
22+
FLY_API_TOKEN: ${{ secrets.FLY_PROD_API_TOKEN }}

0 commit comments

Comments
 (0)