diff --git a/packages/backend/cloudbuild.yaml b/packages/backend/cloudbuild.yaml index ca2e823b..45121b92 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 -la + cat .env gcloud app deploy --no-cache --quiet - env: - - DATABASE_SERVICE=firebase - - API_KEY=$_API_KEY - - RPC_URL=$_RPC_URL timeout: "1600s"