@catladder/pipeline 3.40.1 โ 3.41.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/base/index.js +2 -4
- package/dist/build/types.d.ts +0 -10
- package/dist/constants.js +1 -1
- package/dist/deploy/base/deploy.js +1 -6
- package/dist/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +2 -3
- package/dist/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +2 -3
- package/dist/deploy/custom/deployJob.js +2 -3
- package/dist/deploy/kubernetes/deployJob.js +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/automatic-releases.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-n8n.test.ts.snap +940 -0
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +0 -336
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +0 -224
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-build-job.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-deploy.test.ts.snap +0 -106
- package/examples/__snapshots__/custom-docker-file.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-envs.test.ts.snap +0 -132
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +0 -112
- package/examples/__snapshots__/git-submodule.test.ts.snap +0 -112
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +0 -112
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +0 -112
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +0 -224
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +0 -112
- package/examples/__snapshots__/local-dot-env.test.ts.snap +0 -112
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +0 -112
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +0 -88
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +0 -88
- package/examples/__snapshots__/multiline-var.test.ts.snap +0 -336
- package/examples/__snapshots__/native-app.test.ts.snap +0 -216
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +0 -112
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +0 -112
- package/examples/__snapshots__/override-secrets.test.ts.snap +0 -112
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +0 -112
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +0 -112
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +0 -336
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +0 -208
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +0 -224
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +0 -224
- package/examples/{custom-sbom-java.test.ts โ cloud-run-n8n.test.ts} +2 -2
- package/examples/cloud-run-n8n.ts +62 -0
- package/package.json +1 -1
- package/src/build/base/index.ts +0 -4
- package/src/build/types.ts +0 -13
- package/src/deploy/base/deploy.ts +0 -5
- package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +0 -2
- package/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.ts +0 -2
- package/src/deploy/custom/deployJob.ts +2 -9
- package/src/deploy/kubernetes/deployJob.ts +3 -10
- package/dist/build/sbom.d.ts +0 -5
- package/dist/build/sbom.js +0 -35
- package/dist/deploy/sbom.d.ts +0 -4
- package/dist/deploy/sbom.js +0 -21
- package/examples/custom-sbom-java.ts +0 -38
- package/src/build/sbom.ts +0 -53
- package/src/deploy/sbom.ts +0 -34
|
@@ -353,28 +353,6 @@ before_script:
|
|
|
353
353
|
- 'api ๐จ app | dev '
|
|
354
354
|
retry: *a1
|
|
355
355
|
interruptible: true
|
|
356
|
-
'api ๐งพ sbom | dev ':
|
|
357
|
-
stage: build
|
|
358
|
-
image:
|
|
359
|
-
name: aquasec/trivy:0.58.2
|
|
360
|
-
entrypoint:
|
|
361
|
-
- ''
|
|
362
|
-
variables: {}
|
|
363
|
-
script:
|
|
364
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
365
|
-
- collapseable_section_end "injectvars"
|
|
366
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
367
|
-
artifacts:
|
|
368
|
-
paths:
|
|
369
|
-
- __sbom.json
|
|
370
|
-
rules:
|
|
371
|
-
- when: never
|
|
372
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
373
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
374
|
-
needs: []
|
|
375
|
-
retry: *a1
|
|
376
|
-
interruptible: true
|
|
377
|
-
allow_failure: true
|
|
378
356
|
'api ๐ Deploy | dev ':
|
|
379
357
|
stage: deploy dev
|
|
380
358
|
image: path/to/docker/gcloud:the-version
|
|
@@ -455,8 +433,6 @@ before_script:
|
|
|
455
433
|
- 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
|
|
456
434
|
- set -e
|
|
457
435
|
- collapseable_section_end "cleanup"
|
|
458
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
459
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
460
436
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
461
437
|
environment:
|
|
462
438
|
name: dev/api
|
|
@@ -480,8 +456,6 @@ before_script:
|
|
|
480
456
|
artifacts: false
|
|
481
457
|
- job: 'api ๐งช test | dev '
|
|
482
458
|
artifacts: false
|
|
483
|
-
- job: 'api ๐งพ sbom | dev '
|
|
484
|
-
artifacts: true
|
|
485
459
|
- job: 'api ๐ก audit | dev '
|
|
486
460
|
artifacts: false
|
|
487
461
|
retry: *a1
|
|
@@ -505,8 +479,6 @@ before_script:
|
|
|
505
479
|
- gcloud run services delete pan-test-app-dev-api-worker --project=google-project-id --region=europe-west6
|
|
506
480
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api --quiet --delete-tags
|
|
507
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
|
|
508
|
-
- echo 'Disabling component in Dependency Track'
|
|
509
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
510
482
|
- set -e
|
|
511
483
|
environment:
|
|
512
484
|
name: dev/api
|
|
@@ -783,28 +755,6 @@ before_script:
|
|
|
783
755
|
- 'api ๐จ app | review '
|
|
784
756
|
retry: *a1
|
|
785
757
|
interruptible: true
|
|
786
|
-
'api ๐งพ sbom | review ':
|
|
787
|
-
stage: build
|
|
788
|
-
image:
|
|
789
|
-
name: aquasec/trivy:0.58.2
|
|
790
|
-
entrypoint:
|
|
791
|
-
- ''
|
|
792
|
-
variables: {}
|
|
793
|
-
script:
|
|
794
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
795
|
-
- collapseable_section_end "injectvars"
|
|
796
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
797
|
-
artifacts:
|
|
798
|
-
paths:
|
|
799
|
-
- __sbom.json
|
|
800
|
-
rules:
|
|
801
|
-
- when: never
|
|
802
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
803
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
804
|
-
needs: []
|
|
805
|
-
retry: *a1
|
|
806
|
-
interruptible: true
|
|
807
|
-
allow_failure: true
|
|
808
758
|
'api ๐ Deploy | review ':
|
|
809
759
|
stage: deploy review
|
|
810
760
|
image: path/to/docker/gcloud:the-version
|
|
@@ -887,8 +837,6 @@ before_script:
|
|
|
887
837
|
- set -e
|
|
888
838
|
- set -e
|
|
889
839
|
- collapseable_section_end "cleanup"
|
|
890
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
891
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
892
840
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
893
841
|
environment:
|
|
894
842
|
name: review/$CI_COMMIT_REF_NAME/api
|
|
@@ -912,8 +860,6 @@ before_script:
|
|
|
912
860
|
artifacts: false
|
|
913
861
|
- job: 'api ๐งช test | review '
|
|
914
862
|
artifacts: false
|
|
915
|
-
- job: 'api ๐งพ sbom | review '
|
|
916
|
-
artifacts: true
|
|
917
863
|
- job: 'api ๐ก audit | review '
|
|
918
864
|
artifacts: false
|
|
919
865
|
retry: *a1
|
|
@@ -939,8 +885,6 @@ before_script:
|
|
|
939
885
|
- set +e
|
|
940
886
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/api --quiet --delete-tags
|
|
941
887
|
- set -e
|
|
942
|
-
- echo 'Disabling component in Dependency Track'
|
|
943
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
944
888
|
- set -e
|
|
945
889
|
environment:
|
|
946
890
|
name: review/$CI_COMMIT_REF_NAME/api
|
|
@@ -1100,28 +1044,6 @@ before_script:
|
|
|
1100
1044
|
- 'api ๐จ app | stage '
|
|
1101
1045
|
retry: *a1
|
|
1102
1046
|
interruptible: true
|
|
1103
|
-
'api ๐งพ sbom | stage ':
|
|
1104
|
-
stage: build
|
|
1105
|
-
image:
|
|
1106
|
-
name: aquasec/trivy:0.58.2
|
|
1107
|
-
entrypoint:
|
|
1108
|
-
- ''
|
|
1109
|
-
variables: {}
|
|
1110
|
-
script:
|
|
1111
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
1112
|
-
- collapseable_section_end "injectvars"
|
|
1113
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
1114
|
-
artifacts:
|
|
1115
|
-
paths:
|
|
1116
|
-
- __sbom.json
|
|
1117
|
-
rules:
|
|
1118
|
-
- when: never
|
|
1119
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
1120
|
-
- if: $CI_COMMIT_TAG
|
|
1121
|
-
needs: []
|
|
1122
|
-
retry: *a1
|
|
1123
|
-
interruptible: true
|
|
1124
|
-
allow_failure: true
|
|
1125
1047
|
'api ๐ Deploy | stage ':
|
|
1126
1048
|
stage: deploy stage
|
|
1127
1049
|
image: path/to/docker/gcloud:the-version
|
|
@@ -1202,8 +1124,6 @@ before_script:
|
|
|
1202
1124
|
- 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
|
|
1203
1125
|
- set -e
|
|
1204
1126
|
- collapseable_section_end "cleanup"
|
|
1205
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
1206
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
1207
1127
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
1208
1128
|
environment:
|
|
1209
1129
|
name: stage/api
|
|
@@ -1222,8 +1142,6 @@ before_script:
|
|
|
1222
1142
|
artifacts: false
|
|
1223
1143
|
- job: 'api ๐จ docker | stage '
|
|
1224
1144
|
artifacts: false
|
|
1225
|
-
- job: 'api ๐งพ sbom | stage '
|
|
1226
|
-
artifacts: true
|
|
1227
1145
|
retry: *a1
|
|
1228
1146
|
interruptible: true
|
|
1229
1147
|
allow_failure: false
|
|
@@ -1245,8 +1163,6 @@ before_script:
|
|
|
1245
1163
|
- gcloud run services delete pan-test-app-stage-api-worker --project=google-project-id --region=europe-west6
|
|
1246
1164
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api --quiet --delete-tags
|
|
1247
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
|
|
1248
|
-
- echo 'Disabling component in Dependency Track'
|
|
1249
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1250
1166
|
- set -e
|
|
1251
1167
|
environment:
|
|
1252
1168
|
name: stage/api
|
|
@@ -1406,28 +1322,6 @@ before_script:
|
|
|
1406
1322
|
- 'api ๐จ app | prod '
|
|
1407
1323
|
retry: *a1
|
|
1408
1324
|
interruptible: true
|
|
1409
|
-
'api ๐งพ sbom | prod ':
|
|
1410
|
-
stage: build
|
|
1411
|
-
image:
|
|
1412
|
-
name: aquasec/trivy:0.58.2
|
|
1413
|
-
entrypoint:
|
|
1414
|
-
- ''
|
|
1415
|
-
variables: {}
|
|
1416
|
-
script:
|
|
1417
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
1418
|
-
- collapseable_section_end "injectvars"
|
|
1419
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
1420
|
-
artifacts:
|
|
1421
|
-
paths:
|
|
1422
|
-
- __sbom.json
|
|
1423
|
-
rules:
|
|
1424
|
-
- when: never
|
|
1425
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
1426
|
-
- if: $CI_COMMIT_TAG
|
|
1427
|
-
needs: []
|
|
1428
|
-
retry: *a1
|
|
1429
|
-
interruptible: true
|
|
1430
|
-
allow_failure: true
|
|
1431
1325
|
'api ๐ Deploy | prod ':
|
|
1432
1326
|
stage: deploy prod
|
|
1433
1327
|
image: path/to/docker/gcloud:the-version
|
|
@@ -1508,8 +1402,6 @@ before_script:
|
|
|
1508
1402
|
- 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
|
|
1509
1403
|
- set -e
|
|
1510
1404
|
- collapseable_section_end "cleanup"
|
|
1511
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
1512
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
1513
1405
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
1514
1406
|
environment:
|
|
1515
1407
|
name: prod/api
|
|
@@ -1528,8 +1420,6 @@ before_script:
|
|
|
1528
1420
|
artifacts: false
|
|
1529
1421
|
- job: 'api ๐จ docker | prod '
|
|
1530
1422
|
artifacts: false
|
|
1531
|
-
- job: 'api ๐งพ sbom | prod '
|
|
1532
|
-
artifacts: true
|
|
1533
1423
|
retry: *a1
|
|
1534
1424
|
interruptible: true
|
|
1535
1425
|
allow_failure: true
|
|
@@ -1551,8 +1441,6 @@ before_script:
|
|
|
1551
1441
|
- gcloud run services delete pan-test-app-prod-api-worker --project=google-project-id --region=europe-west6
|
|
1552
1442
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api --quiet --delete-tags
|
|
1553
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
|
|
1554
|
-
- echo 'Disabling component in Dependency Track'
|
|
1555
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1556
1444
|
- set -e
|
|
1557
1445
|
environment:
|
|
1558
1446
|
name: prod/api
|
|
@@ -298,28 +298,6 @@ before_script:
|
|
|
298
298
|
- 'www ๐จ app | dev '
|
|
299
299
|
retry: *a2
|
|
300
300
|
interruptible: true
|
|
301
|
-
'www ๐งพ sbom | dev ':
|
|
302
|
-
stage: build
|
|
303
|
-
image:
|
|
304
|
-
name: aquasec/trivy:0.58.2
|
|
305
|
-
entrypoint:
|
|
306
|
-
- ''
|
|
307
|
-
variables: {}
|
|
308
|
-
script:
|
|
309
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
310
|
-
- collapseable_section_end "injectvars"
|
|
311
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
312
|
-
artifacts:
|
|
313
|
-
paths:
|
|
314
|
-
- __sbom.json
|
|
315
|
-
rules:
|
|
316
|
-
- when: never
|
|
317
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
318
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
319
|
-
needs: []
|
|
320
|
-
retry: *a2
|
|
321
|
-
interruptible: true
|
|
322
|
-
allow_failure: true
|
|
323
301
|
'www ๐ Deploy | dev ':
|
|
324
302
|
stage: deploy dev
|
|
325
303
|
image: path/to/docker/gcloud:the-version
|
|
@@ -399,8 +377,6 @@ before_script:
|
|
|
399
377
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
400
378
|
- set -e
|
|
401
379
|
- collapseable_section_end "cleanup"
|
|
402
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
403
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
404
380
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
405
381
|
environment:
|
|
406
382
|
name: dev/www
|
|
@@ -424,8 +400,6 @@ before_script:
|
|
|
424
400
|
artifacts: false
|
|
425
401
|
- job: 'www ๐งช test | dev '
|
|
426
402
|
artifacts: false
|
|
427
|
-
- job: 'www ๐งพ sbom | dev '
|
|
428
|
-
artifacts: true
|
|
429
403
|
- job: 'www ๐ก audit | dev '
|
|
430
404
|
artifacts: false
|
|
431
405
|
retry: *a2
|
|
@@ -448,8 +422,6 @@ before_script:
|
|
|
448
422
|
- gcloud run services delete pan-test-app-dev-www --project=asdf --region=asia-east1
|
|
449
423
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/www --quiet --delete-tags
|
|
450
424
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
451
|
-
- echo 'Disabling component in Dependency Track'
|
|
452
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
453
425
|
- set -e
|
|
454
426
|
environment:
|
|
455
427
|
name: dev/www
|
|
@@ -657,28 +629,6 @@ before_script:
|
|
|
657
629
|
- 'www ๐จ app | review '
|
|
658
630
|
retry: *a2
|
|
659
631
|
interruptible: true
|
|
660
|
-
'www ๐งพ sbom | review ':
|
|
661
|
-
stage: build
|
|
662
|
-
image:
|
|
663
|
-
name: aquasec/trivy:0.58.2
|
|
664
|
-
entrypoint:
|
|
665
|
-
- ''
|
|
666
|
-
variables: {}
|
|
667
|
-
script:
|
|
668
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
669
|
-
- collapseable_section_end "injectvars"
|
|
670
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
671
|
-
artifacts:
|
|
672
|
-
paths:
|
|
673
|
-
- __sbom.json
|
|
674
|
-
rules:
|
|
675
|
-
- when: never
|
|
676
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
677
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
678
|
-
needs: []
|
|
679
|
-
retry: *a2
|
|
680
|
-
interruptible: true
|
|
681
|
-
allow_failure: true
|
|
682
632
|
'www ๐ Deploy | review ':
|
|
683
633
|
stage: deploy review
|
|
684
634
|
image: path/to/docker/gcloud:the-version
|
|
@@ -761,8 +711,6 @@ before_script:
|
|
|
761
711
|
- set -e
|
|
762
712
|
- set -e
|
|
763
713
|
- collapseable_section_end "cleanup"
|
|
764
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
765
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
766
714
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
767
715
|
environment:
|
|
768
716
|
name: review/$CI_COMMIT_REF_NAME/www
|
|
@@ -786,8 +734,6 @@ before_script:
|
|
|
786
734
|
artifacts: false
|
|
787
735
|
- job: 'www ๐งช test | review '
|
|
788
736
|
artifacts: false
|
|
789
|
-
- job: 'www ๐งพ sbom | review '
|
|
790
|
-
artifacts: true
|
|
791
737
|
- job: 'www ๐ก audit | review '
|
|
792
738
|
artifacts: false
|
|
793
739
|
retry: *a2
|
|
@@ -813,8 +759,6 @@ before_script:
|
|
|
813
759
|
- set +e
|
|
814
760
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/www --quiet --delete-tags
|
|
815
761
|
- set -e
|
|
816
|
-
- echo 'Disabling component in Dependency Track'
|
|
817
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
818
762
|
- set -e
|
|
819
763
|
environment:
|
|
820
764
|
name: review/$CI_COMMIT_REF_NAME/www
|
|
@@ -942,28 +886,6 @@ before_script:
|
|
|
942
886
|
- 'www ๐จ app | stage '
|
|
943
887
|
retry: *a2
|
|
944
888
|
interruptible: true
|
|
945
|
-
'www ๐งพ sbom | stage ':
|
|
946
|
-
stage: build
|
|
947
|
-
image:
|
|
948
|
-
name: aquasec/trivy:0.58.2
|
|
949
|
-
entrypoint:
|
|
950
|
-
- ''
|
|
951
|
-
variables: {}
|
|
952
|
-
script:
|
|
953
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
954
|
-
- collapseable_section_end "injectvars"
|
|
955
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
956
|
-
artifacts:
|
|
957
|
-
paths:
|
|
958
|
-
- __sbom.json
|
|
959
|
-
rules:
|
|
960
|
-
- when: never
|
|
961
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
962
|
-
- if: $CI_COMMIT_TAG
|
|
963
|
-
needs: []
|
|
964
|
-
retry: *a2
|
|
965
|
-
interruptible: true
|
|
966
|
-
allow_failure: true
|
|
967
889
|
'www ๐ Deploy | stage ':
|
|
968
890
|
stage: deploy stage
|
|
969
891
|
image: path/to/docker/gcloud:the-version
|
|
@@ -1043,8 +965,6 @@ before_script:
|
|
|
1043
965
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
1044
966
|
- set -e
|
|
1045
967
|
- collapseable_section_end "cleanup"
|
|
1046
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
1047
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
1048
968
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
1049
969
|
environment:
|
|
1050
970
|
name: stage/www
|
|
@@ -1063,8 +983,6 @@ before_script:
|
|
|
1063
983
|
artifacts: false
|
|
1064
984
|
- job: 'www ๐จ docker | stage '
|
|
1065
985
|
artifacts: false
|
|
1066
|
-
- job: 'www ๐งพ sbom | stage '
|
|
1067
|
-
artifacts: true
|
|
1068
986
|
retry: *a2
|
|
1069
987
|
interruptible: true
|
|
1070
988
|
allow_failure: false
|
|
@@ -1085,8 +1003,6 @@ before_script:
|
|
|
1085
1003
|
- gcloud run services delete pan-test-app-stage-www --project=asdf --region=asia-east1
|
|
1086
1004
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/www --quiet --delete-tags
|
|
1087
1005
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
1088
|
-
- echo 'Disabling component in Dependency Track'
|
|
1089
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
1090
1006
|
- set -e
|
|
1091
1007
|
environment:
|
|
1092
1008
|
name: stage/www
|
|
@@ -1214,28 +1130,6 @@ before_script:
|
|
|
1214
1130
|
- 'www ๐จ app | prod '
|
|
1215
1131
|
retry: *a2
|
|
1216
1132
|
interruptible: true
|
|
1217
|
-
'www ๐งพ sbom | prod ':
|
|
1218
|
-
stage: build
|
|
1219
|
-
image:
|
|
1220
|
-
name: aquasec/trivy:0.58.2
|
|
1221
|
-
entrypoint:
|
|
1222
|
-
- ''
|
|
1223
|
-
variables: {}
|
|
1224
|
-
script:
|
|
1225
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
1226
|
-
- collapseable_section_end "injectvars"
|
|
1227
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
1228
|
-
artifacts:
|
|
1229
|
-
paths:
|
|
1230
|
-
- __sbom.json
|
|
1231
|
-
rules:
|
|
1232
|
-
- when: never
|
|
1233
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
1234
|
-
- if: $CI_COMMIT_TAG
|
|
1235
|
-
needs: []
|
|
1236
|
-
retry: *a2
|
|
1237
|
-
interruptible: true
|
|
1238
|
-
allow_failure: true
|
|
1239
1133
|
'www ๐ Deploy | prod ':
|
|
1240
1134
|
stage: deploy prod
|
|
1241
1135
|
image: path/to/docker/gcloud:the-version
|
|
@@ -1315,8 +1209,6 @@ before_script:
|
|
|
1315
1209
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
1316
1210
|
- set -e
|
|
1317
1211
|
- collapseable_section_end "cleanup"
|
|
1318
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
1319
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
1320
1212
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
1321
1213
|
environment:
|
|
1322
1214
|
name: prod/www
|
|
@@ -1335,8 +1227,6 @@ before_script:
|
|
|
1335
1227
|
artifacts: false
|
|
1336
1228
|
- job: 'www ๐จ docker | prod '
|
|
1337
1229
|
artifacts: false
|
|
1338
|
-
- job: 'www ๐งพ sbom | prod '
|
|
1339
|
-
artifacts: true
|
|
1340
1230
|
retry: *a2
|
|
1341
1231
|
interruptible: true
|
|
1342
1232
|
allow_failure: true
|
|
@@ -1357,8 +1247,6 @@ before_script:
|
|
|
1357
1247
|
- gcloud run services delete pan-test-app-prod-www --project=asdf --region=asia-east1
|
|
1358
1248
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/www --quiet --delete-tags
|
|
1359
1249
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
1360
|
-
- echo 'Disabling component in Dependency Track'
|
|
1361
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
1362
1250
|
- set -e
|
|
1363
1251
|
environment:
|
|
1364
1252
|
name: prod/www
|
|
@@ -214,28 +214,6 @@ before_script:
|
|
|
214
214
|
- 'www ๐จ app | dev '
|
|
215
215
|
retry: *a1
|
|
216
216
|
interruptible: true
|
|
217
|
-
'www ๐งพ sbom | dev ':
|
|
218
|
-
stage: build
|
|
219
|
-
image:
|
|
220
|
-
name: aquasec/trivy:0.58.2
|
|
221
|
-
entrypoint:
|
|
222
|
-
- ''
|
|
223
|
-
variables: {}
|
|
224
|
-
script:
|
|
225
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
226
|
-
- collapseable_section_end "injectvars"
|
|
227
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
228
|
-
artifacts:
|
|
229
|
-
paths:
|
|
230
|
-
- __sbom.json
|
|
231
|
-
rules:
|
|
232
|
-
- when: never
|
|
233
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
234
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
235
|
-
needs: []
|
|
236
|
-
retry: *a1
|
|
237
|
-
interruptible: true
|
|
238
|
-
allow_failure: true
|
|
239
217
|
'www ๐ Deploy | dev ':
|
|
240
218
|
stage: deploy dev
|
|
241
219
|
image: path/to/docker/gcloud:the-version
|
|
@@ -315,8 +293,6 @@ before_script:
|
|
|
315
293
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
316
294
|
- set -e
|
|
317
295
|
- collapseable_section_end "cleanup"
|
|
318
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
319
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
320
296
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
321
297
|
environment:
|
|
322
298
|
name: dev/www
|
|
@@ -336,8 +312,6 @@ before_script:
|
|
|
336
312
|
artifacts: false
|
|
337
313
|
- job: 'www ๐จ docker | dev '
|
|
338
314
|
artifacts: false
|
|
339
|
-
- job: 'www ๐งพ sbom | dev '
|
|
340
|
-
artifacts: true
|
|
341
315
|
retry: *a1
|
|
342
316
|
interruptible: true
|
|
343
317
|
allow_failure: false
|
|
@@ -358,8 +332,6 @@ before_script:
|
|
|
358
332
|
- gcloud run services delete pan-test-app-dev-www --project=asdf --region=asia-east1
|
|
359
333
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/www --quiet --delete-tags
|
|
360
334
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
361
|
-
- echo 'Disabling component in Dependency Track'
|
|
362
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
363
335
|
- set -e
|
|
364
336
|
environment:
|
|
365
337
|
name: dev/www
|
|
@@ -483,28 +455,6 @@ before_script:
|
|
|
483
455
|
- 'www ๐จ app | review '
|
|
484
456
|
retry: *a1
|
|
485
457
|
interruptible: true
|
|
486
|
-
'www ๐งพ sbom | review ':
|
|
487
|
-
stage: build
|
|
488
|
-
image:
|
|
489
|
-
name: aquasec/trivy:0.58.2
|
|
490
|
-
entrypoint:
|
|
491
|
-
- ''
|
|
492
|
-
variables: {}
|
|
493
|
-
script:
|
|
494
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
495
|
-
- collapseable_section_end "injectvars"
|
|
496
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
497
|
-
artifacts:
|
|
498
|
-
paths:
|
|
499
|
-
- __sbom.json
|
|
500
|
-
rules:
|
|
501
|
-
- when: never
|
|
502
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
503
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
504
|
-
needs: []
|
|
505
|
-
retry: *a1
|
|
506
|
-
interruptible: true
|
|
507
|
-
allow_failure: true
|
|
508
458
|
'www ๐ Deploy | review ':
|
|
509
459
|
stage: deploy review
|
|
510
460
|
image: path/to/docker/gcloud:the-version
|
|
@@ -587,8 +537,6 @@ before_script:
|
|
|
587
537
|
- set -e
|
|
588
538
|
- set -e
|
|
589
539
|
- collapseable_section_end "cleanup"
|
|
590
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
591
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
592
540
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
593
541
|
environment:
|
|
594
542
|
name: review/$CI_COMMIT_REF_NAME/www
|
|
@@ -608,8 +556,6 @@ before_script:
|
|
|
608
556
|
artifacts: false
|
|
609
557
|
- job: 'www ๐จ docker | review '
|
|
610
558
|
artifacts: false
|
|
611
|
-
- job: 'www ๐งพ sbom | review '
|
|
612
|
-
artifacts: true
|
|
613
559
|
retry: *a1
|
|
614
560
|
interruptible: true
|
|
615
561
|
allow_failure: false
|
|
@@ -633,8 +579,6 @@ before_script:
|
|
|
633
579
|
- set +e
|
|
634
580
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/www --quiet --delete-tags
|
|
635
581
|
- set -e
|
|
636
|
-
- echo 'Disabling component in Dependency Track'
|
|
637
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
638
582
|
- set -e
|
|
639
583
|
environment:
|
|
640
584
|
name: review/$CI_COMMIT_REF_NAME/www
|
|
@@ -758,28 +702,6 @@ before_script:
|
|
|
758
702
|
- 'www ๐จ app | stage '
|
|
759
703
|
retry: *a1
|
|
760
704
|
interruptible: true
|
|
761
|
-
'www ๐งพ sbom | stage ':
|
|
762
|
-
stage: build
|
|
763
|
-
image:
|
|
764
|
-
name: aquasec/trivy:0.58.2
|
|
765
|
-
entrypoint:
|
|
766
|
-
- ''
|
|
767
|
-
variables: {}
|
|
768
|
-
script:
|
|
769
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
770
|
-
- collapseable_section_end "injectvars"
|
|
771
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
772
|
-
artifacts:
|
|
773
|
-
paths:
|
|
774
|
-
- __sbom.json
|
|
775
|
-
rules:
|
|
776
|
-
- when: never
|
|
777
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
778
|
-
- if: $CI_COMMIT_TAG
|
|
779
|
-
needs: []
|
|
780
|
-
retry: *a1
|
|
781
|
-
interruptible: true
|
|
782
|
-
allow_failure: true
|
|
783
705
|
'www ๐ Deploy | stage ':
|
|
784
706
|
stage: deploy stage
|
|
785
707
|
image: path/to/docker/gcloud:the-version
|
|
@@ -859,8 +781,6 @@ before_script:
|
|
|
859
781
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
860
782
|
- set -e
|
|
861
783
|
- collapseable_section_end "cleanup"
|
|
862
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
863
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
864
784
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
865
785
|
environment:
|
|
866
786
|
name: stage/www
|
|
@@ -879,8 +799,6 @@ before_script:
|
|
|
879
799
|
artifacts: false
|
|
880
800
|
- job: 'www ๐จ docker | stage '
|
|
881
801
|
artifacts: false
|
|
882
|
-
- job: 'www ๐งพ sbom | stage '
|
|
883
|
-
artifacts: true
|
|
884
802
|
retry: *a1
|
|
885
803
|
interruptible: true
|
|
886
804
|
allow_failure: false
|
|
@@ -901,8 +819,6 @@ before_script:
|
|
|
901
819
|
- gcloud run services delete pan-test-app-stage-www --project=asdf --region=asia-east1
|
|
902
820
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/www --quiet --delete-tags
|
|
903
821
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
904
|
-
- echo 'Disabling component in Dependency Track'
|
|
905
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
906
822
|
- set -e
|
|
907
823
|
environment:
|
|
908
824
|
name: stage/www
|
|
@@ -1026,28 +942,6 @@ before_script:
|
|
|
1026
942
|
- 'www ๐จ app | prod '
|
|
1027
943
|
retry: *a1
|
|
1028
944
|
interruptible: true
|
|
1029
|
-
'www ๐งพ sbom | prod ':
|
|
1030
|
-
stage: build
|
|
1031
|
-
image:
|
|
1032
|
-
name: aquasec/trivy:0.58.2
|
|
1033
|
-
entrypoint:
|
|
1034
|
-
- ''
|
|
1035
|
-
variables: {}
|
|
1036
|
-
script:
|
|
1037
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
1038
|
-
- collapseable_section_end "injectvars"
|
|
1039
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" www
|
|
1040
|
-
artifacts:
|
|
1041
|
-
paths:
|
|
1042
|
-
- __sbom.json
|
|
1043
|
-
rules:
|
|
1044
|
-
- when: never
|
|
1045
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
1046
|
-
- if: $CI_COMMIT_TAG
|
|
1047
|
-
needs: []
|
|
1048
|
-
retry: *a1
|
|
1049
|
-
interruptible: true
|
|
1050
|
-
allow_failure: true
|
|
1051
945
|
'www ๐ Deploy | prod ':
|
|
1052
946
|
stage: deploy prod
|
|
1053
947
|
image: path/to/docker/gcloud:the-version
|
|
@@ -1127,8 +1021,6 @@ before_script:
|
|
|
1127
1021
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
1128
1022
|
- set -e
|
|
1129
1023
|
- collapseable_section_end "cleanup"
|
|
1130
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
1131
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
1132
1024
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
1133
1025
|
environment:
|
|
1134
1026
|
name: prod/www
|
|
@@ -1147,8 +1039,6 @@ before_script:
|
|
|
1147
1039
|
artifacts: false
|
|
1148
1040
|
- job: 'www ๐จ docker | prod '
|
|
1149
1041
|
artifacts: false
|
|
1150
|
-
- job: 'www ๐งพ sbom | prod '
|
|
1151
|
-
artifacts: true
|
|
1152
1042
|
retry: *a1
|
|
1153
1043
|
interruptible: true
|
|
1154
1044
|
allow_failure: true
|
|
@@ -1169,8 +1059,6 @@ before_script:
|
|
|
1169
1059
|
- gcloud run services delete pan-test-app-prod-www --project=asdf --region=asia-east1
|
|
1170
1060
|
- gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/www --quiet --delete-tags
|
|
1171
1061
|
- gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/www@$version --quiet --delete-tags; done
|
|
1172
|
-
- echo 'Disabling component in Dependency Track'
|
|
1173
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
|
|
1174
1062
|
- set -e
|
|
1175
1063
|
environment:
|
|
1176
1064
|
name: prod/www
|