Skip to content

Commit

Permalink
Use the same step for cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
carletex committed Sep 6, 2023
1 parent 379a994 commit b21cdd2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/backend/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
steps:
# Creates the production .env file
- name: 'alpine'
entrypoint: sh
args: ['-c', 'printenv > packages/backend/.env']
env:
- DATABASE_SERVICE=firebase
- API_KEY=$_API_KEY
- RPC_URL=$_RPC_URL
- name: "gcr.io/cloud-builders/gcloud"
entrypoint: 'bash'
args:
- '-c'
- |
cd packages/backend
printenv > .env
ll
gcloud app deploy --no-cache --quiet
env:
- DATABASE_SERVICE=firebase
- API_KEY=$_API_KEY
- RPC_URL=$_RPC_URL
timeout: "1600s"

0 comments on commit b21cdd2

Please sign in to comment.