mirror of
https://github.com/imjasonh/crush
synced 2026-07-07 00:12:50 +00:00
16 lines
506 B
Bash
Executable file
16 lines
506 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
PROJECT=${PROJECT:-kontaindotme}
|
|
REGION=${REGION:-us-east4}
|
|
TIMEOUT=${TIMEOUT:-5m}
|
|
MEMORY=${MEMORY:-4Gi}
|
|
CPU=${CPU:2000m}
|
|
|
|
gcloud run deploy crush \
|
|
--image=$(KO_DOCKER_REPO=gcr.io/${PROJECT} KO_DEFAULTBASEIMAGE=$(apko publish base.yaml gcr.io/${PROJECT}/base) ko build ./cmd/server -P --sbom=none) \
|
|
--timeout=${TIMEOUT} --cpu=${CPU} --memory=${MEMORY} \
|
|
--no-allow-unauthenticated \
|
|
--execution-environment=gen2 \
|
|
--region=${REGION} --project=${PROJECT}
|