@catladder/pipeline 3.42.0 → 3.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/node/testJob.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +4 -0
- package/dist/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +92 -0
- package/dist/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +13 -2
- package/dist/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +12 -2
- package/dist/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
- package/dist/deploy/types/googleCloudRun.d.ts +45 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/automatic-releases.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +10 -10
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +6 -6
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +4 -4
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +8 -8
- package/examples/__snapshots__/cloud-run-worker-pool.test.ts.snap +1495 -0
- package/examples/__snapshots__/custom-deploy.test.ts.snap +2 -2
- package/examples/__snapshots__/custom-docker-file.test.ts.snap +2 -2
- package/examples/__snapshots__/custom-envs.test.ts.snap +4 -4
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +2 -2
- package/examples/__snapshots__/git-submodule.test.ts.snap +2 -2
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +2 -2
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +2 -2
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +4 -4
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +2 -2
- package/examples/__snapshots__/local-dot-env.test.ts.snap +2 -2
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +2 -2
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +2 -2
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +2 -2
- package/examples/__snapshots__/multiline-var.test.ts.snap +6 -6
- package/examples/__snapshots__/native-app.test.ts.snap +4 -4
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +2 -2
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +2 -2
- package/examples/__snapshots__/override-secrets.test.ts.snap +2 -2
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +6 -6
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +4 -4
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +2 -2
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +2 -2
- package/examples/cloud-run-meteor-with-worker.ts +4 -5
- package/examples/cloud-run-with-worker.ts +5 -6
- package/examples/cloud-run-worker-pool.test.ts +12 -0
- package/examples/cloud-run-worker-pool.ts +42 -0
- package/package.json +1 -1
- package/src/build/node/testJob.ts +1 -1
- package/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.ts +75 -0
- package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +14 -1
- package/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.ts +4 -0
- package/src/deploy/cloudRun/createJobs/volumes.ts +1 -1
- package/src/deploy/types/googleCloudRun.ts +55 -0
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="web"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd web
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -419,7 +419,7 @@ before_script:
|
|
|
419
419
|
- collapseable_section_end "writeenvvars"
|
|
420
420
|
- collapseable_section_start "deploy" "Deploy to cloud run"
|
|
421
421
|
- gcloud run deploy pan-test-app-dev-web --command="node,main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=dev,env-name=dev,build-type=meteor,cloud-run-service-name=pan-test-app-dev-web --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost
|
|
422
|
-
- gcloud run deploy pan-test-app-dev-web-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=dev,env-name=dev,build-type=meteor,cloud-run-
|
|
422
|
+
- gcloud beta run worker-pools deploy pan-test-app-dev-web-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=dev,env-name=dev,build-type=meteor,cloud-run-worker-pool-name=pan-test-app-dev-web-worker --env-vars-file=____envvars.yaml --instances=1 --cpu=1 --memory=512Mi
|
|
423
423
|
- collapseable_section_end "deploy"
|
|
424
424
|
- collapseable_section_start "cleanup" "Cleanup"
|
|
425
425
|
- set +e
|
|
@@ -471,7 +471,7 @@ before_script:
|
|
|
471
471
|
- set +e
|
|
472
472
|
- gcloud auth activate-service-account --key-file=<(echo "$CL_dev_web_GCLOUD_DEPLOY_credentialsKey")
|
|
473
473
|
- gcloud run services delete pan-test-app-dev-web --project=google-project-id --region=europe-west6
|
|
474
|
-
- gcloud run
|
|
474
|
+
- gcloud beta run worker-pools delete pan-test-app-dev-web-worker --project=google-project-id --region=europe-west6
|
|
475
475
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/web --quiet --delete-tags
|
|
476
476
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web@$version --quiet --delete-tags; done
|
|
477
477
|
- set -e
|
|
@@ -499,7 +499,7 @@ before_script:
|
|
|
499
499
|
- export APP_PATH="web"
|
|
500
500
|
- collapseable_section_end "injectvars"
|
|
501
501
|
- cd web
|
|
502
|
-
- yarn npm audit --environment production --
|
|
502
|
+
- yarn npm audit --environment production --severity critical
|
|
503
503
|
rules:
|
|
504
504
|
- when: never
|
|
505
505
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -816,7 +816,7 @@ before_script:
|
|
|
816
816
|
- collapseable_section_end "writeenvvars"
|
|
817
817
|
- collapseable_section_start "deploy" "Deploy to cloud run"
|
|
818
818
|
- gcloud run deploy $(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-web" | awk '{print tolower($0)}') --command="node,main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/web/$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; }):$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=review,env-name=review,build-type=meteor,cloud-run-service-name=$(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-web" | awk '{print tolower($0)}') --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost
|
|
819
|
-
- gcloud run deploy $(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-web" | awk '{print tolower($0)}')-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/web/$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; }):$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=review,env-name=review,build-type=meteor,cloud-run-
|
|
819
|
+
- gcloud beta run worker-pools deploy $(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-web" | awk '{print tolower($0)}')-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/web/$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; }):$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=review,env-name=review,build-type=meteor,cloud-run-worker-pool-name=$(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-web" | awk '{print tolower($0)}')-worker --env-vars-file=____envvars.yaml --instances=1 --cpu=1 --memory=512Mi
|
|
820
820
|
- collapseable_section_end "deploy"
|
|
821
821
|
- collapseable_section_start "cleanup" "Cleanup"
|
|
822
822
|
- set +e
|
|
@@ -871,7 +871,7 @@ before_script:
|
|
|
871
871
|
- set +e
|
|
872
872
|
- gcloud auth activate-service-account --key-file=<(echo "$CL_review_web_GCLOUD_DEPLOY_credentialsKey")
|
|
873
873
|
- gcloud run services delete $(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-web" | awk '{print tolower($0)}') --project=google-project-id --region=europe-west6
|
|
874
|
-
- gcloud run
|
|
874
|
+
- gcloud beta run worker-pools delete $(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-web" | awk '{print tolower($0)}')-worker --project=google-project-id --region=europe-west6
|
|
875
875
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/web/$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; }) --quiet --delete-tags
|
|
876
876
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web@$version --quiet --delete-tags; done
|
|
877
877
|
- set +e
|
|
@@ -1102,7 +1102,7 @@ before_script:
|
|
|
1102
1102
|
- collapseable_section_end "writeenvvars"
|
|
1103
1103
|
- collapseable_section_start "deploy" "Deploy to cloud run"
|
|
1104
1104
|
- gcloud run deploy pan-test-app-stage-web --command="node,main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=stage,env-name=stage,build-type=meteor,cloud-run-service-name=pan-test-app-stage-web --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost
|
|
1105
|
-
- gcloud run deploy pan-test-app-stage-web-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=stage,env-name=stage,build-type=meteor,cloud-run-
|
|
1105
|
+
- gcloud beta run worker-pools deploy pan-test-app-stage-web-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=stage,env-name=stage,build-type=meteor,cloud-run-worker-pool-name=pan-test-app-stage-web-worker --env-vars-file=____envvars.yaml --instances=1 --cpu=1 --memory=512Mi
|
|
1106
1106
|
- collapseable_section_end "deploy"
|
|
1107
1107
|
- collapseable_section_start "cleanup" "Cleanup"
|
|
1108
1108
|
- set +e
|
|
@@ -1147,7 +1147,7 @@ before_script:
|
|
|
1147
1147
|
- set +e
|
|
1148
1148
|
- gcloud auth activate-service-account --key-file=<(echo "$CL_stage_web_GCLOUD_DEPLOY_credentialsKey")
|
|
1149
1149
|
- gcloud run services delete pan-test-app-stage-web --project=google-project-id --region=europe-west6
|
|
1150
|
-
- gcloud run
|
|
1150
|
+
- gcloud beta run worker-pools delete pan-test-app-stage-web-worker --project=google-project-id --region=europe-west6
|
|
1151
1151
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/web --quiet --delete-tags
|
|
1152
1152
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web@$version --quiet --delete-tags; done
|
|
1153
1153
|
- set -e
|
|
@@ -1375,7 +1375,7 @@ before_script:
|
|
|
1375
1375
|
- collapseable_section_end "writeenvvars"
|
|
1376
1376
|
- collapseable_section_start "deploy" "Deploy to cloud run"
|
|
1377
1377
|
- gcloud run deploy pan-test-app-prod-web --command="node,main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=prod,env-name=prod,build-type=meteor,cloud-run-service-name=pan-test-app-prod-web --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost
|
|
1378
|
-
- gcloud run deploy pan-test-app-prod-web-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=prod,env-name=prod,build-type=meteor,cloud-run-
|
|
1378
|
+
- gcloud beta run worker-pools deploy pan-test-app-prod-web-worker --command="/bin/sh,-c,BACKGROUND_JOBS_ENABLED=1 node main.js" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/web:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=web,app-name=test-app,env-type=prod,env-name=prod,build-type=meteor,cloud-run-worker-pool-name=pan-test-app-prod-web-worker --env-vars-file=____envvars.yaml --instances=1 --cpu=1 --memory=512Mi
|
|
1379
1379
|
- collapseable_section_end "deploy"
|
|
1380
1380
|
- collapseable_section_start "cleanup" "Cleanup"
|
|
1381
1381
|
- set +e
|
|
@@ -1420,7 +1420,7 @@ before_script:
|
|
|
1420
1420
|
- set +e
|
|
1421
1421
|
- gcloud auth activate-service-account --key-file=<(echo "$CL_prod_web_GCLOUD_DEPLOY_credentialsKey")
|
|
1422
1422
|
- gcloud run services delete pan-test-app-prod-web --project=google-project-id --region=europe-west6
|
|
1423
|
-
- gcloud run
|
|
1423
|
+
- gcloud beta run worker-pools delete pan-test-app-prod-web-worker --project=google-project-id --region=europe-west6
|
|
1424
1424
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/web --quiet --delete-tags
|
|
1425
1425
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/web@$version --quiet --delete-tags; done
|
|
1426
1426
|
- set -e
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="www"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd www
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -506,7 +506,7 @@ before_script:
|
|
|
506
506
|
- export APP_PATH="www"
|
|
507
507
|
- collapseable_section_end "injectvars"
|
|
508
508
|
- cd www
|
|
509
|
-
- yarn npm audit --environment production --
|
|
509
|
+
- yarn npm audit --environment production --severity critical
|
|
510
510
|
rules:
|
|
511
511
|
- when: never
|
|
512
512
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="app"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd app
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -529,7 +529,7 @@ before_script:
|
|
|
529
529
|
- export APP_PATH="app"
|
|
530
530
|
- collapseable_section_end "injectvars"
|
|
531
531
|
- cd app
|
|
532
|
-
- yarn npm audit --environment production --
|
|
532
|
+
- yarn npm audit --environment production --severity critical
|
|
533
533
|
rules:
|
|
534
534
|
- when: never
|
|
535
535
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -519,7 +519,7 @@ before_script:
|
|
|
519
519
|
- export APP_PATH="api"
|
|
520
520
|
- collapseable_section_end "injectvars"
|
|
521
521
|
- cd api
|
|
522
|
-
- yarn npm audit --environment production --
|
|
522
|
+
- yarn npm audit --environment production --severity critical
|
|
523
523
|
rules:
|
|
524
524
|
- when: never
|
|
525
525
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -519,7 +519,7 @@ before_script:
|
|
|
519
519
|
- export APP_PATH="api"
|
|
520
520
|
- collapseable_section_end "injectvars"
|
|
521
521
|
- cd api
|
|
522
|
-
- yarn npm audit --environment production --
|
|
522
|
+
- yarn npm audit --environment production --severity critical
|
|
523
523
|
rules:
|
|
524
524
|
- when: never
|
|
525
525
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -520,7 +520,7 @@ before_script:
|
|
|
520
520
|
- export APP_PATH="api"
|
|
521
521
|
- collapseable_section_end "injectvars"
|
|
522
522
|
- cd api
|
|
523
|
-
- yarn npm audit --environment production --
|
|
523
|
+
- yarn npm audit --environment production --severity critical
|
|
524
524
|
rules:
|
|
525
525
|
- when: never
|
|
526
526
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="www"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd www
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -506,7 +506,7 @@ before_script:
|
|
|
506
506
|
- export APP_PATH="www"
|
|
507
507
|
- collapseable_section_end "injectvars"
|
|
508
508
|
- cd www
|
|
509
|
-
- yarn npm audit --environment production --
|
|
509
|
+
- yarn npm audit --environment production --severity critical
|
|
510
510
|
rules:
|
|
511
511
|
- when: never
|
|
512
512
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="api"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd api
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="app"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd app
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -502,7 +502,7 @@ before_script:
|
|
|
502
502
|
- export APP_PATH="app"
|
|
503
503
|
- collapseable_section_end "injectvars"
|
|
504
504
|
- cd app
|
|
505
|
-
- yarn npm audit --environment production --
|
|
505
|
+
- yarn npm audit --environment production --severity critical
|
|
506
506
|
rules:
|
|
507
507
|
- when: never
|
|
508
508
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -580,7 +580,7 @@ before_script:
|
|
|
580
580
|
- export APP_PATH="api"
|
|
581
581
|
- collapseable_section_end "injectvars"
|
|
582
582
|
- cd api
|
|
583
|
-
- yarn npm audit --environment production --
|
|
583
|
+
- yarn npm audit --environment production --severity critical
|
|
584
584
|
rules:
|
|
585
585
|
- when: never
|
|
586
586
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="packages/db1"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd packages/db1
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -552,7 +552,7 @@ before_script:
|
|
|
552
552
|
- export APP_PATH="packages/db1"
|
|
553
553
|
- collapseable_section_end "injectvars"
|
|
554
554
|
- cd packages/db1
|
|
555
|
-
- yarn npm audit --environment production --
|
|
555
|
+
- yarn npm audit --environment production --severity critical
|
|
556
556
|
rules:
|
|
557
557
|
- when: never
|
|
558
558
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -1663,7 +1663,7 @@ before_script:
|
|
|
1663
1663
|
- export APP_PATH="packages/db2"
|
|
1664
1664
|
- collapseable_section_end "injectvars"
|
|
1665
1665
|
- cd packages/db2
|
|
1666
|
-
- yarn npm audit --environment production --
|
|
1666
|
+
- yarn npm audit --environment production --severity critical
|
|
1667
1667
|
rules:
|
|
1668
1668
|
- when: never
|
|
1669
1669
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -2099,7 +2099,7 @@ before_script:
|
|
|
2099
2099
|
- export APP_PATH="packages/db2"
|
|
2100
2100
|
- collapseable_section_end "injectvars"
|
|
2101
2101
|
- cd packages/db2
|
|
2102
|
-
- yarn npm audit --environment production --
|
|
2102
|
+
- yarn npm audit --environment production --severity critical
|
|
2103
2103
|
rules:
|
|
2104
2104
|
- when: never
|
|
2105
2105
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -3210,7 +3210,7 @@ before_script:
|
|
|
3210
3210
|
- export APP_PATH="api"
|
|
3211
3211
|
- collapseable_section_end "injectvars"
|
|
3212
3212
|
- cd api
|
|
3213
|
-
- yarn npm audit --environment production --
|
|
3213
|
+
- yarn npm audit --environment production --severity critical
|
|
3214
3214
|
rules:
|
|
3215
3215
|
- when: never
|
|
3216
3216
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -3635,7 +3635,7 @@ before_script:
|
|
|
3635
3635
|
- export APP_PATH="api"
|
|
3636
3636
|
- collapseable_section_end "injectvars"
|
|
3637
3637
|
- cd api
|
|
3638
|
-
- yarn npm audit --environment production --
|
|
3638
|
+
- yarn npm audit --environment production --severity critical
|
|
3639
3639
|
rules:
|
|
3640
3640
|
- when: never
|
|
3641
3641
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -536,7 +536,7 @@ before_script:
|
|
|
536
536
|
- export APP_PATH="api"
|
|
537
537
|
- collapseable_section_end "injectvars"
|
|
538
538
|
- cd api
|
|
539
|
-
- yarn npm audit --environment production --
|
|
539
|
+
- yarn npm audit --environment production --severity critical
|
|
540
540
|
rules:
|
|
541
541
|
- when: never
|
|
542
542
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -1599,7 +1599,7 @@ before_script:
|
|
|
1599
1599
|
- export APP_PATH="api"
|
|
1600
1600
|
- collapseable_section_end "injectvars"
|
|
1601
1601
|
- cd api
|
|
1602
|
-
- yarn npm audit --environment production --
|
|
1602
|
+
- yarn npm audit --environment production --severity critical
|
|
1603
1603
|
rules:
|
|
1604
1604
|
- when: never
|
|
1605
1605
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -2019,7 +2019,7 @@ before_script:
|
|
|
2019
2019
|
- export APP_PATH="api"
|
|
2020
2020
|
- collapseable_section_end "injectvars"
|
|
2021
2021
|
- cd api
|
|
2022
|
-
- yarn npm audit --environment production --
|
|
2022
|
+
- yarn npm audit --environment production --severity critical
|
|
2023
2023
|
rules:
|
|
2024
2024
|
- when: never
|
|
2025
2025
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -612,7 +612,7 @@ before_script:
|
|
|
612
612
|
- export APP_PATH="api"
|
|
613
613
|
- collapseable_section_end "injectvars"
|
|
614
614
|
- cd api
|
|
615
|
-
- yarn npm audit --environment production --
|
|
615
|
+
- yarn npm audit --environment production --severity critical
|
|
616
616
|
rules:
|
|
617
617
|
- when: never
|
|
618
618
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -115,7 +115,7 @@ before_script:
|
|
|
115
115
|
- export APP_PATH="api"
|
|
116
116
|
- collapseable_section_end "injectvars"
|
|
117
117
|
- cd api
|
|
118
|
-
- yarn npm audit --environment production --
|
|
118
|
+
- yarn npm audit --environment production --severity critical
|
|
119
119
|
rules:
|
|
120
120
|
- when: never
|
|
121
121
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -424,7 +424,7 @@ before_script:
|
|
|
424
424
|
- collapseable_section_end "writeenvvars"
|
|
425
425
|
- collapseable_section_start "deploy" "Deploy to cloud run"
|
|
426
426
|
- gcloud run deploy pan-test-app-dev-api --command="yarn,start" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=dev,env-name=dev,build-type=node,cloud-run-service-name=pan-test-app-dev-api --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost
|
|
427
|
-
- gcloud run deploy pan-test-app-dev-api-worker --command="yarn,start:worker" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=dev,env-name=dev,build-type=node,cloud-run-
|
|
427
|
+
- gcloud beta run worker-pools deploy pan-test-app-dev-api-worker --command="yarn,start:worker" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=dev,env-name=dev,build-type=node,cloud-run-worker-pool-name=pan-test-app-dev-api-worker --env-vars-file=____envvars.yaml --instances=1 --cpu=1 --memory=512Mi
|
|
428
428
|
- collapseable_section_end "deploy"
|
|
429
429
|
- collapseable_section_start "cleanup" "Cleanup"
|
|
430
430
|
- set +e
|
|
@@ -476,7 +476,7 @@ before_script:
|
|
|
476
476
|
- set +e
|
|
477
477
|
- gcloud auth activate-service-account --key-file=<(echo "$CL_dev_api_GCLOUD_DEPLOY_credentialsKey")
|
|
478
478
|
- gcloud run services delete pan-test-app-dev-api --project=google-project-id --region=europe-west6
|
|
479
|
-
- gcloud run
|
|
479
|
+
- gcloud beta run worker-pools delete pan-test-app-dev-api-worker --project=google-project-id --region=europe-west6
|
|
480
480
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api --quiet --delete-tags
|
|
481
481
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
482
482
|
- set -e
|
|
@@ -504,7 +504,7 @@ before_script:
|
|
|
504
504
|
- export APP_PATH="api"
|
|
505
505
|
- collapseable_section_end "injectvars"
|
|
506
506
|
- cd api
|
|
507
|
-
- yarn npm audit --environment production --
|
|
507
|
+
- yarn npm audit --environment production --severity critical
|
|
508
508
|
rules:
|
|
509
509
|
- when: never
|
|
510
510
|
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
@@ -1115,7 +1115,7 @@ before_script:
|
|
|
1115
1115
|
- collapseable_section_end "writeenvvars"
|
|
1116
1116
|
- collapseable_section_start "deploy" "Deploy to cloud run"
|
|
1117
1117
|
- gcloud run deploy pan-test-app-stage-api --command="yarn,start" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=stage,env-name=stage,build-type=node,cloud-run-service-name=pan-test-app-stage-api --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost
|
|
1118
|
-
- gcloud run deploy pan-test-app-stage-api-worker --command="yarn,start:worker" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=stage,env-name=stage,build-type=node,cloud-run-
|
|
1118
|
+
- gcloud beta run worker-pools deploy pan-test-app-stage-api-worker --command="yarn,start:worker" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=stage,env-name=stage,build-type=node,cloud-run-worker-pool-name=pan-test-app-stage-api-worker --env-vars-file=____envvars.yaml --instances=1 --cpu=1 --memory=512Mi
|
|
1119
1119
|
- collapseable_section_end "deploy"
|
|
1120
1120
|
- collapseable_section_start "cleanup" "Cleanup"
|
|
1121
1121
|
- set +e
|
|
@@ -1160,7 +1160,7 @@ before_script:
|
|
|
1160
1160
|
- set +e
|
|
1161
1161
|
- gcloud auth activate-service-account --key-file=<(echo "$CL_stage_api_GCLOUD_DEPLOY_credentialsKey")
|
|
1162
1162
|
- gcloud run services delete pan-test-app-stage-api --project=google-project-id --region=europe-west6
|
|
1163
|
-
- gcloud run
|
|
1163
|
+
- gcloud beta run worker-pools delete pan-test-app-stage-api-worker --project=google-project-id --region=europe-west6
|
|
1164
1164
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api --quiet --delete-tags
|
|
1165
1165
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1166
1166
|
- set -e
|
|
@@ -1393,7 +1393,7 @@ before_script:
|
|
|
1393
1393
|
- collapseable_section_end "writeenvvars"
|
|
1394
1394
|
- collapseable_section_start "deploy" "Deploy to cloud run"
|
|
1395
1395
|
- gcloud run deploy pan-test-app-prod-api --command="yarn,start" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=prod,env-name=prod,build-type=node,cloud-run-service-name=pan-test-app-prod-api --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost
|
|
1396
|
-
- gcloud run deploy pan-test-app-prod-api-worker --command="yarn,start:worker" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=prod,env-name=prod,build-type=node,cloud-run-
|
|
1396
|
+
- gcloud beta run worker-pools deploy pan-test-app-prod-api-worker --command="yarn,start:worker" --image=europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api:$DOCKER_IMAGE_TAG --project=google-project-id --region=europe-west6 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=prod,env-name=prod,build-type=node,cloud-run-worker-pool-name=pan-test-app-prod-api-worker --env-vars-file=____envvars.yaml --instances=1 --cpu=1 --memory=512Mi
|
|
1397
1397
|
- collapseable_section_end "deploy"
|
|
1398
1398
|
- collapseable_section_start "cleanup" "Cleanup"
|
|
1399
1399
|
- set +e
|
|
@@ -1438,7 +1438,7 @@ before_script:
|
|
|
1438
1438
|
- set +e
|
|
1439
1439
|
- gcloud auth activate-service-account --key-file=<(echo "$CL_prod_api_GCLOUD_DEPLOY_credentialsKey")
|
|
1440
1440
|
- gcloud run services delete pan-test-app-prod-api --project=google-project-id --region=europe-west6
|
|
1441
|
-
- gcloud run
|
|
1441
|
+
- gcloud beta run worker-pools delete pan-test-app-prod-api-worker --project=google-project-id --region=europe-west6
|
|
1442
1442
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api --quiet --delete-tags
|
|
1443
1443
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1444
1444
|
- set -e
|