Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit eb881f7

Browse files
committed
update gcp config generation to take in backend path
1 parent 6f56037 commit eb881f7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

{{cookiecutter.project_slug}}/.circleci/generate_gcp_config.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
22
set -o pipefail
33

4+
BACKEND_PATH=$1
5+
46
mkdir configs/
57
cat << EOF > configs/generated_config.yml
68
version: 2.1
@@ -21,7 +23,7 @@ jobs:
2123
- run:
2224
name: Run collectstatic and migrations
2325
command: |
24-
gcloud builds submit --config .cloudbuild/migrate_collectstatic.yaml \
26+
gcloud builds submit --config "$BACKEND_PATH.cloudbuild/migrate_collectstatic.yaml" \
2527
--substitutions _INSTANCE_NAME=${GOOGLE_PROJECT_ID},_REGION=${GOOGLE_REGION},_SERVICE_NAME=${GOOGLE_PROJECT_ID}
2628
2729
- cloudrun/deploy:
@@ -33,12 +35,12 @@ jobs:
3335
3436
- run:
3537
name: Webhook Success
36-
command: bash .circleci/webhook_callback.sh "success"
38+
command: bash "$BACKEND_PATH.circleci/webhook_callback.sh" "success"
3739
when: on_success
3840
3941
- run:
4042
name: Webhook Failed
41-
command: bash .circleci/webhook_callback.sh "failure"
43+
command: bash "$BACKEND_PATH.circleci/webhook_callback.sh" "failure"
4244
when: on_fail
4345
4446
workflows:

0 commit comments

Comments
 (0)