From 94c2858cc6d4875a4c0502e7059ed9080186191a Mon Sep 17 00:00:00 2001 From: James Kwon <96548424+hongil0316@users.noreply.github.com> Date: Sun, 26 May 2024 11:19:47 -0400 Subject: [PATCH] Fixing secretManager fetching syntax --- cloudbuild.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index a5b8bee..7a2258e 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -11,9 +11,9 @@ steps: entrypoint: "bash" args: - "-c" - - | + - | curl -sSL https://atlasgo.sh | sh - atlas migrate apply --dir "file://ent/migrate/migrations" --url "$STAGING_DB_CONNECTION_STRING" + atlas migrate apply --dir "file://ent/migrate/migrations" --url $STAGING_DB_CONNECTION_STRING # Publish the release - name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:458.0.1' @@ -26,9 +26,11 @@ steps: --region=us-central1 --delivery-pipeline=comfy-backend-api-pipeline --images=registry-backend-image-substitute=us-central1-docker.pkg.dev/dreamboothy/registry-backend/registry-backend-image:$SHORT_SHA -options: - machineType: 'E2_HIGHCPU_8' + availableSecrets: secretManager: - - versionName: projects/dreamboothy/secrets/STAGING_DB_CONNECTION_STRING/versions/latest - env: 'STAGING_DB_CONNECTION_STRING' \ No newline at end of file + - versionName: projects/357148958219/secrets/STAGING_SUPABASE_CONNECTION_STRING/versions/latest + env: 'STAGING_DB_CONNECTION_STRING' + +options: + machineType: 'E2_HIGHCPU_8' \ No newline at end of file