Deploy B2

Path: codemode-gateway/scripts/deploy-b2.shRelative: scripts/deploy-b2.shSubproject: codemode-gatewayCategory: codemode-gateway
Lines: 46Bytes: 1,776Imports: 0Exports: 0

Content Preview

  1. #!/usr/bin/env bash
  2. # B2 deploy sequence for codemode-gateway.
  3. # Authorized reversible versioned Worker update (per dispatch B2 instructions).
  4. # Never prints any token value.
  5. set -euo pipefail
  6. PROJECT_DIR="/home/mikes/leverage-loops-projects/codemode-gateway"
  7. ENV_FILE="/home/mikes/.env"
  8. # shellcheck disable=SC1090
  9. set -a; . "$ENV_FILE"; set +a
  10. : "${CF_WORKERS_DEPLOY_TOKEN:?CF_WORKERS_DEPLOY_TOKEN missing from $ENV_FILE}"
  11. : "${CLOUDFLARE_ACCOUNT_ID:?CLOUDFLARE_ACCOUNT_ID missing from $ENV_FILE