pass DATOCMS_API_TOKEN from github action deploy job
This commit is contained in:
parent
1e89e57145
commit
8d52962392
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||||
with:
|
with:
|
||||||
args: "deploy -c ./fly.dev.toml"
|
args: "deploy -c ./fly.dev.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}"
|
||||||
|
|
||||||
deploy_prod:
|
deploy_prod:
|
||||||
if: github.ref == 'refs/heads/production'
|
if: github.ref == 'refs/heads/production'
|
||||||
@ -66,5 +66,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
|
||||||
with:
|
with:
|
||||||
args: "deploy -c ./fly.prod.toml"
|
args: "deploy -c ./fly.prod.toml --build-arg DATOCMS_API_TOKEN=${{ secrets.DATOCMS_API_TOKEN }}"
|
||||||
# TODO: on pull_request, deploy 24hour-long deployment at {commit_short_hash}.shellphone.app, provision db and seed data
|
# TODO: on pull_request, deploy 24hour-long deployment at {commit_short_hash}.shellphone.app, provision db and seed data
|
||||||
|
Loading…
Reference in New Issue
Block a user