kopia lustrzana https://github.com/cloudflare/wildebeest
deploy: configure wrangler for D1 migration
rodzic
aca25165d8
commit
a1ac5f5a77
|
@ -38,6 +38,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
command: d1 migrations apply wildebeest-${{ github.actor }}
|
command: d1 migrations apply wildebeest-${{ github.actor }}
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
|
preCommands: |
|
||||||
|
echo "*** pre commands ***"
|
||||||
|
cat <<EOT >> wrangler.toml
|
||||||
|
[[d1_databases]]
|
||||||
|
binding = "DATABASE"
|
||||||
|
database_name = "wildebeest-${{ github.actor }}"
|
||||||
|
database_id = "${{ env.d1_id }}"
|
||||||
|
EOT
|
||||||
|
echo "******"
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue