Skip to content

Commit

Permalink
use GITHUB_SHA for SLOT_NAME_SUFFIX (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
abc3 committed Dec 21, 2022
1 parent dcd8463 commit a496de7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions@1.1
with:
args: "-c deploy/fly/prod.toml deploy --build-arg SLOT_NAME_SUFFIX=$(git rev-parse --short HEAD)"
args: "-c deploy/fly/prod.toml deploy --build-arg SLOT_NAME_SUFFIX=${GITHUB_SHA::6}"
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: actions/checkout@v2
- uses: superfly/flyctl-actions@1.1
with:
args: "-c deploy/fly/staging.toml deploy --build-arg SLOT_NAME_SUFFIX=$(git rev-parse --short HEAD)"
args: "-c deploy/fly/staging.toml deploy --build-arg SLOT_NAME_SUFFIX=${GITHUB_SHA::6}"
2 changes: 1 addition & 1 deletion .github/workflows/staging_supabench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
args: "-c deploy/fly/qa.toml scale count 1"
- uses: superfly/flyctl-actions@1.1
with:
args: "-c deploy/fly/qa.toml deploy --build-arg SLOT_NAME_SUFFIX=$(git rev-parse --short HEAD)"
args: "-c deploy/fly/qa.toml deploy --build-arg SLOT_NAME_SUFFIX=${GITHUB_SHA::6}"
- uses: superfly/flyctl-actions@1.1
if: always()
with:
Expand Down

0 comments on commit a496de7

Please sign in to comment.