From cf2db040ebe9221814059ccda06d65aee98c14cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20S=C3=A1nchez?= Date: Wed, 6 Sep 2023 15:53:23 +0200 Subject: [PATCH] Remove duped envvar? --- packages/backend/cloudbuild.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/backend/cloudbuild.yaml b/packages/backend/cloudbuild.yaml index ca2e823b..63d2afef 100644 --- a/packages/backend/cloudbuild.yaml +++ b/packages/backend/cloudbuild.yaml @@ -1,15 +1,18 @@ steps: + # Creates the production .env file + - name: 'alpine' + entrypoint: sh + args: ['-c', 'printenv > packages/backend/.env'] + env: + - API_KEY=$_API_KEY + - RPC_URL=$_RPC_URL - name: "gcr.io/cloud-builders/gcloud" entrypoint: 'bash' args: - '-c' - | cd packages/backend - printenv > .env - ll + ls -l + cat .env gcloud app deploy --no-cache --quiet - env: - - DATABASE_SERVICE=firebase - - API_KEY=$_API_KEY - - RPC_URL=$_RPC_URL timeout: "1600s"