mirror of
https://github.com/tormachris/cf-workers-status-page.git
synced 2024-10-31 21:36:08 +01:00
fail open on kv create
This commit is contained in:
parent
998e3a9db9
commit
4394c872f5
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
command: publish --env production
|
command: publish --env production
|
||||||
wranglerVersion: beta
|
wranglerVersion: beta
|
||||||
preCommands: |
|
preCommands: |
|
||||||
wrangler kv:namespace create KV_STATUS_PAGE
|
wrangler kv:namespace create KV_STATUS_PAGE || echo "KV namespace already exists"
|
||||||
apt-get update && apt-get install -y jq
|
apt-get update && apt-get install -y jq
|
||||||
export KV_NAMESPACE_ID=$(wrangler kv:namespace list | jq -c 'map(select(.title | contains("KV_STATUS_PAGE")))' | jq -r ".[0].id")
|
export KV_NAMESPACE_ID=$(wrangler kv:namespace list | jq -c 'map(select(.title | contains("KV_STATUS_PAGE")))' | jq -r ".[0].id")
|
||||||
echo "[env.production]" >> wrangler.toml
|
echo "[env.production]" >> wrangler.toml
|
||||||
|
Loading…
Reference in New Issue
Block a user