@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.
Files changed (81) hide show
  1. package/dist/build/base/index.js +2 -4
  2. package/dist/build/types.d.ts +0 -10
  3. package/dist/constants.js +1 -1
  4. package/dist/deploy/base/deploy.js +1 -6
  5. package/dist/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +2 -3
  6. package/dist/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +2 -3
  7. package/dist/deploy/custom/deployJob.js +2 -3
  8. package/dist/deploy/kubernetes/deployJob.js +2 -3
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/examples/__snapshots__/automatic-releases.test.ts.snap +0 -112
  11. package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +0 -112
  12. package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +0 -112
  13. package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +0 -112
  14. package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +0 -112
  15. package/examples/__snapshots__/cloud-run-http2.test.ts.snap +0 -112
  16. package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +0 -112
  17. package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +0 -112
  18. package/examples/__snapshots__/cloud-run-n8n.test.ts.snap +940 -0
  19. package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +0 -112
  20. package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +0 -112
  21. package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +0 -112
  22. package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +0 -112
  23. package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +0 -112
  24. package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +0 -112
  25. package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +0 -112
  26. package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +0 -112
  27. package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +0 -112
  28. package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +0 -112
  29. package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +0 -112
  30. package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +0 -112
  31. package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +0 -112
  32. package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +0 -112
  33. package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +0 -112
  34. package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +0 -112
  35. package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +0 -336
  36. package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +0 -224
  37. package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +0 -112
  38. package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +0 -112
  39. package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +0 -112
  40. package/examples/__snapshots__/custom-build-job.test.ts.snap +0 -112
  41. package/examples/__snapshots__/custom-deploy.test.ts.snap +0 -106
  42. package/examples/__snapshots__/custom-docker-file.test.ts.snap +0 -112
  43. package/examples/__snapshots__/custom-envs.test.ts.snap +0 -132
  44. package/examples/__snapshots__/custom-verify-job.test.ts.snap +0 -112
  45. package/examples/__snapshots__/git-submodule.test.ts.snap +0 -112
  46. package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +0 -112
  47. package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +0 -112
  48. package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +0 -224
  49. package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +0 -112
  50. package/examples/__snapshots__/local-dot-env.test.ts.snap +0 -112
  51. package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +0 -112
  52. package/examples/__snapshots__/modify-generated-files.test.ts.snap +0 -88
  53. package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +0 -88
  54. package/examples/__snapshots__/multiline-var.test.ts.snap +0 -336
  55. package/examples/__snapshots__/native-app.test.ts.snap +0 -216
  56. package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +0 -112
  57. package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +0 -112
  58. package/examples/__snapshots__/override-secrets.test.ts.snap +0 -112
  59. package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +0 -112
  60. package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +0 -112
  61. package/examples/__snapshots__/referencing-other-vars.test.ts.snap +0 -336
  62. package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +0 -208
  63. package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +0 -224
  64. package/examples/__snapshots__/workspace-api-www.test.ts.snap +0 -224
  65. package/examples/{custom-sbom-java.test.ts โ†’ cloud-run-n8n.test.ts} +2 -2
  66. package/examples/cloud-run-n8n.ts +62 -0
  67. package/package.json +1 -1
  68. package/src/build/base/index.ts +0 -4
  69. package/src/build/types.ts +0 -13
  70. package/src/deploy/base/deploy.ts +0 -5
  71. package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +0 -2
  72. package/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.ts +0 -2
  73. package/src/deploy/custom/deployJob.ts +2 -9
  74. package/src/deploy/kubernetes/deployJob.ts +3 -10
  75. package/dist/build/sbom.d.ts +0 -5
  76. package/dist/build/sbom.js +0 -35
  77. package/dist/deploy/sbom.d.ts +0 -4
  78. package/dist/deploy/sbom.js +0 -21
  79. package/examples/custom-sbom-java.ts +0 -38
  80. package/src/build/sbom.ts +0 -53
  81. package/src/deploy/sbom.ts +0 -34
@@ -353,28 +353,6 @@ before_script:
353
353
  - 'www ๐Ÿ”จ app | dev '
354
354
  retry: *a1
355
355
  interruptible: true
356
- 'www ๐Ÿงพ 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" www
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
  'www ๐Ÿš€ Deploy | dev ':
379
357
  stage: deploy dev
380
358
  image: path/to/docker/gcloud:the-version
@@ -454,8 +432,6 @@ before_script:
454
432
  - 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
455
433
  - set -e
456
434
  - collapseable_section_end "cleanup"
457
- - echo 'Uploading SBOM to Dependency Track'
458
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
459
435
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
460
436
  environment:
461
437
  name: dev/www
@@ -479,8 +455,6 @@ before_script:
479
455
  artifacts: false
480
456
  - job: 'www ๐Ÿงช test | dev '
481
457
  artifacts: false
482
- - job: 'www ๐Ÿงพ sbom | dev '
483
- artifacts: true
484
458
  - job: 'www ๐Ÿ›ก audit | dev '
485
459
  artifacts: false
486
460
  retry: *a1
@@ -503,8 +477,6 @@ before_script:
503
477
  - gcloud run services delete pan-test-app-dev-www --project=asdf --region=asia-east1
504
478
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/www --quiet --delete-tags
505
479
  - 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
506
- - echo 'Disabling component in Dependency Track'
507
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
508
480
  - set -e
509
481
  environment:
510
482
  name: dev/www
@@ -836,28 +808,6 @@ before_script:
836
808
  - 'www ๐Ÿ”จ app | review '
837
809
  retry: *a1
838
810
  interruptible: true
839
- 'www ๐Ÿงพ sbom | review ':
840
- stage: build
841
- image:
842
- name: aquasec/trivy:0.58.2
843
- entrypoint:
844
- - ''
845
- variables: {}
846
- script:
847
- - collapseable_section_start "injectvars" "Injecting variables"
848
- - collapseable_section_end "injectvars"
849
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
850
- artifacts:
851
- paths:
852
- - __sbom.json
853
- rules:
854
- - when: never
855
- if: $CI_PIPELINE_SOURCE == "trigger"
856
- - if: $CI_MERGE_REQUEST_ID
857
- needs: []
858
- retry: *a1
859
- interruptible: true
860
- allow_failure: true
861
811
  'www ๐Ÿš€ Deploy | review ':
862
812
  stage: deploy review
863
813
  image: path/to/docker/gcloud:the-version
@@ -940,8 +890,6 @@ before_script:
940
890
  - set -e
941
891
  - set -e
942
892
  - collapseable_section_end "cleanup"
943
- - echo 'Uploading SBOM to Dependency Track'
944
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
945
893
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
946
894
  environment:
947
895
  name: review/$CI_COMMIT_REF_NAME/www
@@ -965,8 +913,6 @@ before_script:
965
913
  artifacts: false
966
914
  - job: 'www ๐Ÿงช test | review '
967
915
  artifacts: false
968
- - job: 'www ๐Ÿงพ sbom | review '
969
- artifacts: true
970
916
  - job: 'www ๐Ÿ›ก audit | review '
971
917
  artifacts: false
972
918
  retry: *a1
@@ -992,8 +938,6 @@ before_script:
992
938
  - set +e
993
939
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/www --quiet --delete-tags
994
940
  - set -e
995
- - echo 'Disabling component in Dependency Track'
996
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
997
941
  - set -e
998
942
  environment:
999
943
  name: review/$CI_COMMIT_REF_NAME/www
@@ -1210,28 +1154,6 @@ before_script:
1210
1154
  - 'www ๐Ÿ”จ app | stage '
1211
1155
  retry: *a1
1212
1156
  interruptible: true
1213
- 'www ๐Ÿงพ sbom | stage ':
1214
- stage: build
1215
- image:
1216
- name: aquasec/trivy:0.58.2
1217
- entrypoint:
1218
- - ''
1219
- variables: {}
1220
- script:
1221
- - collapseable_section_start "injectvars" "Injecting variables"
1222
- - collapseable_section_end "injectvars"
1223
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
1224
- artifacts:
1225
- paths:
1226
- - __sbom.json
1227
- rules:
1228
- - when: never
1229
- if: $CI_PIPELINE_SOURCE == "trigger"
1230
- - if: $CI_COMMIT_TAG
1231
- needs: []
1232
- retry: *a1
1233
- interruptible: true
1234
- allow_failure: true
1235
1157
  'www ๐Ÿš€ Deploy | stage ':
1236
1158
  stage: deploy stage
1237
1159
  image: path/to/docker/gcloud:the-version
@@ -1311,8 +1233,6 @@ before_script:
1311
1233
  - 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
1312
1234
  - set -e
1313
1235
  - collapseable_section_end "cleanup"
1314
- - echo 'Uploading SBOM to Dependency Track'
1315
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
1316
1236
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1317
1237
  environment:
1318
1238
  name: stage/www
@@ -1331,8 +1251,6 @@ before_script:
1331
1251
  artifacts: false
1332
1252
  - job: 'www ๐Ÿ”จ docker | stage '
1333
1253
  artifacts: false
1334
- - job: 'www ๐Ÿงพ sbom | stage '
1335
- artifacts: true
1336
1254
  retry: *a1
1337
1255
  interruptible: true
1338
1256
  allow_failure: false
@@ -1353,8 +1271,6 @@ before_script:
1353
1271
  - gcloud run services delete pan-test-app-stage-www --project=asdf --region=asia-east1
1354
1272
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/www --quiet --delete-tags
1355
1273
  - 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
1356
- - echo 'Disabling component in Dependency Track'
1357
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
1358
1274
  - set -e
1359
1275
  environment:
1360
1276
  name: stage/www
@@ -1569,28 +1485,6 @@ before_script:
1569
1485
  - 'www ๐Ÿ”จ app | prod '
1570
1486
  retry: *a1
1571
1487
  interruptible: true
1572
- 'www ๐Ÿงพ sbom | prod ':
1573
- stage: build
1574
- image:
1575
- name: aquasec/trivy:0.58.2
1576
- entrypoint:
1577
- - ''
1578
- variables: {}
1579
- script:
1580
- - collapseable_section_start "injectvars" "Injecting variables"
1581
- - collapseable_section_end "injectvars"
1582
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
1583
- artifacts:
1584
- paths:
1585
- - __sbom.json
1586
- rules:
1587
- - when: never
1588
- if: $CI_PIPELINE_SOURCE == "trigger"
1589
- - if: $CI_COMMIT_TAG
1590
- needs: []
1591
- retry: *a1
1592
- interruptible: true
1593
- allow_failure: true
1594
1488
  'www ๐Ÿš€ Deploy | prod ':
1595
1489
  stage: deploy prod
1596
1490
  image: path/to/docker/gcloud:the-version
@@ -1670,8 +1564,6 @@ before_script:
1670
1564
  - 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
1671
1565
  - set -e
1672
1566
  - collapseable_section_end "cleanup"
1673
- - echo 'Uploading SBOM to Dependency Track'
1674
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
1675
1567
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1676
1568
  environment:
1677
1569
  name: prod/www
@@ -1690,8 +1582,6 @@ before_script:
1690
1582
  artifacts: false
1691
1583
  - job: 'www ๐Ÿ”จ docker | prod '
1692
1584
  artifacts: false
1693
- - job: 'www ๐Ÿงพ sbom | prod '
1694
- artifacts: true
1695
1585
  retry: *a1
1696
1586
  interruptible: true
1697
1587
  allow_failure: true
@@ -1712,8 +1602,6 @@ before_script:
1712
1602
  - gcloud run services delete pan-test-app-prod-www --project=asdf --region=asia-east1
1713
1603
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/www --quiet --delete-tags
1714
1604
  - 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
1715
- - echo 'Disabling component in Dependency Track'
1716
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
1717
1605
  - set -e
1718
1606
  environment:
1719
1607
  name: prod/www
@@ -354,28 +354,6 @@ before_script:
354
354
  - 'app ๐Ÿ”จ app | dev '
355
355
  retry: *a1
356
356
  interruptible: true
357
- 'app ๐Ÿงพ sbom | dev ':
358
- stage: build
359
- image:
360
- name: aquasec/trivy:0.58.2
361
- entrypoint:
362
- - ''
363
- variables: {}
364
- script:
365
- - collapseable_section_start "injectvars" "Injecting variables"
366
- - collapseable_section_end "injectvars"
367
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
368
- artifacts:
369
- paths:
370
- - __sbom.json
371
- rules:
372
- - when: never
373
- if: $CI_PIPELINE_SOURCE == "trigger"
374
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
375
- needs: []
376
- retry: *a1
377
- interruptible: true
378
- allow_failure: true
379
357
  'app ๐Ÿš€ Deploy | dev ':
380
358
  stage: deploy dev
381
359
  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/my-project-id/catladder-deploy/pan-test-app/caches/app --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/my-project-id/catladder-deploy/pan-test-app/caches/app@$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/app" "$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/app
@@ -480,8 +456,6 @@ before_script:
480
456
  artifacts: false
481
457
  - job: 'app ๐Ÿงช test | dev '
482
458
  artifacts: false
483
- - job: 'app ๐Ÿงพ sbom | dev '
484
- artifacts: true
485
459
  - job: 'app ๐Ÿ›ก audit | dev '
486
460
  artifacts: false
487
461
  retry: *a1
@@ -504,8 +478,6 @@ before_script:
504
478
  - gcloud run services delete pan-test-app-dev-app --project=my-project-id --region=europe-west6
505
479
  - gcloud artifacts docker images delete europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/dev/app --quiet --delete-tags
506
480
  - gcloud artifacts docker images list europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/caches/app --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/my-project-id/catladder-deploy/pan-test-app/caches/app@$version --quiet --delete-tags; done
507
- - echo 'Disabling component in Dependency Track'
508
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app" "$CI_ENVIRONMENT_URL" || true
509
481
  - set -e
510
482
  environment:
511
483
  name: dev/app
@@ -782,28 +754,6 @@ before_script:
782
754
  - 'app ๐Ÿ”จ app | review '
783
755
  retry: *a1
784
756
  interruptible: true
785
- 'app ๐Ÿงพ sbom | review ':
786
- stage: build
787
- image:
788
- name: aquasec/trivy:0.58.2
789
- entrypoint:
790
- - ''
791
- variables: {}
792
- script:
793
- - collapseable_section_start "injectvars" "Injecting variables"
794
- - collapseable_section_end "injectvars"
795
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
796
- artifacts:
797
- paths:
798
- - __sbom.json
799
- rules:
800
- - when: never
801
- if: $CI_PIPELINE_SOURCE == "trigger"
802
- - if: $CI_MERGE_REQUEST_ID
803
- needs: []
804
- retry: *a1
805
- interruptible: true
806
- allow_failure: true
807
757
  'app ๐Ÿš€ Deploy | review ':
808
758
  stage: deploy review
809
759
  image: path/to/docker/gcloud:the-version
@@ -886,8 +836,6 @@ before_script:
886
836
  - set -e
887
837
  - set -e
888
838
  - collapseable_section_end "cleanup"
889
- - echo 'Uploading SBOM to Dependency Track'
890
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app" "$ROOT_URL" "__sbom.json" vex.json || true
891
839
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
892
840
  environment:
893
841
  name: review/$CI_COMMIT_REF_NAME/app
@@ -911,8 +859,6 @@ before_script:
911
859
  artifacts: false
912
860
  - job: 'app ๐Ÿงช test | review '
913
861
  artifacts: false
914
- - job: 'app ๐Ÿงพ sbom | review '
915
- artifacts: true
916
862
  - job: 'app ๐Ÿ›ก audit | review '
917
863
  artifacts: false
918
864
  retry: *a1
@@ -938,8 +884,6 @@ before_script:
938
884
  - set +e
939
885
  - gcloud artifacts docker images delete europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/review/app --quiet --delete-tags
940
886
  - set -e
941
- - echo 'Disabling component in Dependency Track'
942
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app" "$CI_ENVIRONMENT_URL" || true
943
887
  - set -e
944
888
  environment:
945
889
  name: review/$CI_COMMIT_REF_NAME/app
@@ -1099,28 +1043,6 @@ before_script:
1099
1043
  - 'app ๐Ÿ”จ app | stage '
1100
1044
  retry: *a1
1101
1045
  interruptible: true
1102
- 'app ๐Ÿงพ sbom | stage ':
1103
- stage: build
1104
- image:
1105
- name: aquasec/trivy:0.58.2
1106
- entrypoint:
1107
- - ''
1108
- variables: {}
1109
- script:
1110
- - collapseable_section_start "injectvars" "Injecting variables"
1111
- - collapseable_section_end "injectvars"
1112
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
1113
- artifacts:
1114
- paths:
1115
- - __sbom.json
1116
- rules:
1117
- - when: never
1118
- if: $CI_PIPELINE_SOURCE == "trigger"
1119
- - if: $CI_COMMIT_TAG
1120
- needs: []
1121
- retry: *a1
1122
- interruptible: true
1123
- allow_failure: true
1124
1046
  'app ๐Ÿš€ Deploy | stage ':
1125
1047
  stage: deploy stage
1126
1048
  image: path/to/docker/gcloud:the-version
@@ -1200,8 +1122,6 @@ before_script:
1200
1122
  - gcloud artifacts docker images list europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/caches/app --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/my-project-id/catladder-deploy/pan-test-app/caches/app@$version --quiet --delete-tags; done
1201
1123
  - set -e
1202
1124
  - collapseable_section_end "cleanup"
1203
- - echo 'Uploading SBOM to Dependency Track'
1204
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app" "$ROOT_URL" "__sbom.json" vex.json || true
1205
1125
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1206
1126
  environment:
1207
1127
  name: stage/app
@@ -1220,8 +1140,6 @@ before_script:
1220
1140
  artifacts: false
1221
1141
  - job: 'app ๐Ÿ”จ docker | stage '
1222
1142
  artifacts: false
1223
- - job: 'app ๐Ÿงพ sbom | stage '
1224
- artifacts: true
1225
1143
  retry: *a1
1226
1144
  interruptible: true
1227
1145
  allow_failure: false
@@ -1242,8 +1160,6 @@ before_script:
1242
1160
  - gcloud run services delete pan-test-app-stage-app --project=my-project-id --region=europe-west6
1243
1161
  - gcloud artifacts docker images delete europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/stage/app --quiet --delete-tags
1244
1162
  - gcloud artifacts docker images list europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/caches/app --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/my-project-id/catladder-deploy/pan-test-app/caches/app@$version --quiet --delete-tags; done
1245
- - echo 'Disabling component in Dependency Track'
1246
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app" "$CI_ENVIRONMENT_URL" || true
1247
1163
  - set -e
1248
1164
  environment:
1249
1165
  name: stage/app
@@ -1403,28 +1319,6 @@ before_script:
1403
1319
  - 'app ๐Ÿ”จ app | prod '
1404
1320
  retry: *a1
1405
1321
  interruptible: true
1406
- 'app ๐Ÿงพ sbom | prod ':
1407
- stage: build
1408
- image:
1409
- name: aquasec/trivy:0.58.2
1410
- entrypoint:
1411
- - ''
1412
- variables: {}
1413
- script:
1414
- - collapseable_section_start "injectvars" "Injecting variables"
1415
- - collapseable_section_end "injectvars"
1416
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
1417
- artifacts:
1418
- paths:
1419
- - __sbom.json
1420
- rules:
1421
- - when: never
1422
- if: $CI_PIPELINE_SOURCE == "trigger"
1423
- - if: $CI_COMMIT_TAG
1424
- needs: []
1425
- retry: *a1
1426
- interruptible: true
1427
- allow_failure: true
1428
1322
  'app ๐Ÿš€ Deploy | prod ':
1429
1323
  stage: deploy prod
1430
1324
  image: path/to/docker/gcloud:the-version
@@ -1504,8 +1398,6 @@ before_script:
1504
1398
  - gcloud artifacts docker images list europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/caches/app --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/my-project-id/catladder-deploy/pan-test-app/caches/app@$version --quiet --delete-tags; done
1505
1399
  - set -e
1506
1400
  - collapseable_section_end "cleanup"
1507
- - echo 'Uploading SBOM to Dependency Track'
1508
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app" "$ROOT_URL" "__sbom.json" vex.json || true
1509
1401
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1510
1402
  environment:
1511
1403
  name: prod/app
@@ -1524,8 +1416,6 @@ before_script:
1524
1416
  artifacts: false
1525
1417
  - job: 'app ๐Ÿ”จ docker | prod '
1526
1418
  artifacts: false
1527
- - job: 'app ๐Ÿงพ sbom | prod '
1528
- artifacts: true
1529
1419
  retry: *a1
1530
1420
  interruptible: true
1531
1421
  allow_failure: true
@@ -1546,8 +1436,6 @@ before_script:
1546
1436
  - gcloud run services delete pan-test-app-prod-app --project=my-project-id --region=europe-west6
1547
1437
  - gcloud artifacts docker images delete europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/prod/app --quiet --delete-tags
1548
1438
  - gcloud artifacts docker images list europe-west6-docker.pkg.dev/my-project-id/catladder-deploy/pan-test-app/caches/app --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/my-project-id/catladder-deploy/pan-test-app/caches/app@$version --quiet --delete-tags; done
1549
- - echo 'Disabling component in Dependency Track'
1550
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app" "$CI_ENVIRONMENT_URL" || true
1551
1439
  - set -e
1552
1440
  environment:
1553
1441
  name: prod/app
@@ -334,28 +334,6 @@ before_script:
334
334
  - 'api ๐Ÿ”จ app | dev '
335
335
  retry: *a1
336
336
  interruptible: true
337
- 'api ๐Ÿงพ sbom | dev ':
338
- stage: build
339
- image:
340
- name: aquasec/trivy:0.58.2
341
- entrypoint:
342
- - ''
343
- variables: {}
344
- script:
345
- - collapseable_section_start "injectvars" "Injecting variables"
346
- - collapseable_section_end "injectvars"
347
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
348
- artifacts:
349
- paths:
350
- - __sbom.json
351
- rules:
352
- - when: never
353
- if: $CI_PIPELINE_SOURCE == "trigger"
354
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
355
- needs: []
356
- retry: *a1
357
- interruptible: true
358
- allow_failure: true
359
337
  'api ๐Ÿš€ Deploy | dev ':
360
338
  stage: deploy dev
361
339
  image: path/to/docker/kubernetes:the-version
@@ -469,8 +447,6 @@ before_script:
469
447
  - collapseable_section_end "writeallvalues"
470
448
  - kubernetesCreateSecret
471
449
  - kubernetesDeploy
472
- - echo 'Uploading SBOM to Dependency Track'
473
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
474
450
  - echo deployment successful ๐Ÿ˜ป
475
451
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
476
452
  environment:
@@ -495,8 +471,6 @@ before_script:
495
471
  artifacts: false
496
472
  - job: 'api ๐Ÿงช test | dev '
497
473
  artifacts: false
498
- - job: 'api ๐Ÿงพ sbom | dev '
499
- artifacts: true
500
474
  - job: 'api ๐Ÿ›ก audit | dev '
501
475
  artifacts: false
502
476
  retry: *a1
@@ -538,8 +512,6 @@ before_script:
538
512
  - kubectl config set-context "kube-pan-test-app-dev-api" --cluster="kube-pan-test-app-dev-api" --user="kube-pan-test-app-dev-api" --namespace="pan-test-app-dev"
539
513
  - kubectl config use-context "kube-pan-test-app-dev-api"
540
514
  - kubernetesDelete
541
- - echo 'Disabling component in Dependency Track'
542
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
543
515
  environment:
544
516
  name: dev/api
545
517
  action: stop
@@ -844,28 +816,6 @@ before_script:
844
816
  - 'api ๐Ÿ”จ app | review '
845
817
  retry: *a1
846
818
  interruptible: true
847
- 'api ๐Ÿงพ sbom | review ':
848
- stage: build
849
- image:
850
- name: aquasec/trivy:0.58.2
851
- entrypoint:
852
- - ''
853
- variables: {}
854
- script:
855
- - collapseable_section_start "injectvars" "Injecting variables"
856
- - collapseable_section_end "injectvars"
857
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
858
- artifacts:
859
- paths:
860
- - __sbom.json
861
- rules:
862
- - when: never
863
- if: $CI_PIPELINE_SOURCE == "trigger"
864
- - if: $CI_MERGE_REQUEST_ID
865
- needs: []
866
- retry: *a1
867
- interruptible: true
868
- allow_failure: true
869
819
  'api ๐Ÿš€ Deploy | review ':
870
820
  stage: deploy review
871
821
  image: path/to/docker/kubernetes:the-version
@@ -980,8 +930,6 @@ before_script:
980
930
  - collapseable_section_end "writeallvalues"
981
931
  - kubernetesCreateSecret
982
932
  - kubernetesDeploy
983
- - echo 'Uploading SBOM to Dependency Track'
984
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
985
933
  - echo deployment successful ๐Ÿ˜ป
986
934
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
987
935
  environment:
@@ -1006,8 +954,6 @@ before_script:
1006
954
  artifacts: false
1007
955
  - job: 'api ๐Ÿงช test | review '
1008
956
  artifacts: false
1009
- - job: 'api ๐Ÿงพ sbom | review '
1010
- artifacts: true
1011
957
  - job: 'api ๐Ÿ›ก audit | review '
1012
958
  artifacts: false
1013
959
  retry: *a1
@@ -1049,8 +995,6 @@ before_script:
1049
995
  - kubectl config set-context "kube-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"; })-api" --cluster="kube-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"; })-api" --user="kube-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"; })-api" --namespace="pan-test-app-review"
1050
996
  - kubectl config use-context "kube-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"; })-api"
1051
997
  - kubernetesDelete
1052
- - echo 'Disabling component in Dependency Track'
1053
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
1054
998
  environment:
1055
999
  name: review/$CI_COMMIT_REF_NAME/api
1056
1000
  action: stop
@@ -1238,28 +1182,6 @@ before_script:
1238
1182
  - 'api ๐Ÿ”จ app | stage '
1239
1183
  retry: *a1
1240
1184
  interruptible: true
1241
- 'api ๐Ÿงพ sbom | stage ':
1242
- stage: build
1243
- image:
1244
- name: aquasec/trivy:0.58.2
1245
- entrypoint:
1246
- - ''
1247
- variables: {}
1248
- script:
1249
- - collapseable_section_start "injectvars" "Injecting variables"
1250
- - collapseable_section_end "injectvars"
1251
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
1252
- artifacts:
1253
- paths:
1254
- - __sbom.json
1255
- rules:
1256
- - when: never
1257
- if: $CI_PIPELINE_SOURCE == "trigger"
1258
- - if: $CI_COMMIT_TAG
1259
- needs: []
1260
- retry: *a1
1261
- interruptible: true
1262
- allow_failure: true
1263
1185
  'api ๐Ÿš€ Deploy | stage ':
1264
1186
  stage: deploy stage
1265
1187
  image: path/to/docker/kubernetes:the-version
@@ -1373,8 +1295,6 @@ before_script:
1373
1295
  - collapseable_section_end "writeallvalues"
1374
1296
  - kubernetesCreateSecret
1375
1297
  - kubernetesDeploy
1376
- - echo 'Uploading SBOM to Dependency Track'
1377
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
1378
1298
  - echo deployment successful ๐Ÿ˜ป
1379
1299
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1380
1300
  environment:
@@ -1394,8 +1314,6 @@ before_script:
1394
1314
  artifacts: false
1395
1315
  - job: 'api ๐Ÿ”จ docker | stage '
1396
1316
  artifacts: false
1397
- - job: 'api ๐Ÿงพ sbom | stage '
1398
- artifacts: true
1399
1317
  retry: *a1
1400
1318
  interruptible: true
1401
1319
  allow_failure: false
@@ -1435,8 +1353,6 @@ before_script:
1435
1353
  - kubectl config set-context "kube-pan-test-app-stage-api" --cluster="kube-pan-test-app-stage-api" --user="kube-pan-test-app-stage-api" --namespace="pan-test-app-stage"
1436
1354
  - kubectl config use-context "kube-pan-test-app-stage-api"
1437
1355
  - kubernetesDelete
1438
- - echo 'Disabling component in Dependency Track'
1439
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
1440
1356
  environment:
1441
1357
  name: stage/api
1442
1358
  action: stop
@@ -1624,28 +1540,6 @@ before_script:
1624
1540
  - 'api ๐Ÿ”จ app | prod '
1625
1541
  retry: *a1
1626
1542
  interruptible: true
1627
- 'api ๐Ÿงพ sbom | prod ':
1628
- stage: build
1629
- image:
1630
- name: aquasec/trivy:0.58.2
1631
- entrypoint:
1632
- - ''
1633
- variables: {}
1634
- script:
1635
- - collapseable_section_start "injectvars" "Injecting variables"
1636
- - collapseable_section_end "injectvars"
1637
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
1638
- artifacts:
1639
- paths:
1640
- - __sbom.json
1641
- rules:
1642
- - when: never
1643
- if: $CI_PIPELINE_SOURCE == "trigger"
1644
- - if: $CI_COMMIT_TAG
1645
- needs: []
1646
- retry: *a1
1647
- interruptible: true
1648
- allow_failure: true
1649
1543
  'api ๐Ÿš€ Deploy | prod ':
1650
1544
  stage: deploy prod
1651
1545
  image: path/to/docker/kubernetes:the-version
@@ -1759,8 +1653,6 @@ before_script:
1759
1653
  - collapseable_section_end "writeallvalues"
1760
1654
  - kubernetesCreateSecret
1761
1655
  - kubernetesDeploy
1762
- - echo 'Uploading SBOM to Dependency Track'
1763
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
1764
1656
  - echo deployment successful ๐Ÿ˜ป
1765
1657
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1766
1658
  environment:
@@ -1780,8 +1672,6 @@ before_script:
1780
1672
  artifacts: false
1781
1673
  - job: 'api ๐Ÿ”จ docker | prod '
1782
1674
  artifacts: false
1783
- - job: 'api ๐Ÿงพ sbom | prod '
1784
- artifacts: true
1785
1675
  retry: *a1
1786
1676
  interruptible: true
1787
1677
  allow_failure: true
@@ -1821,8 +1711,6 @@ before_script:
1821
1711
  - kubectl config set-context "kube-pan-test-app-prod-api" --cluster="kube-pan-test-app-prod-api" --user="kube-pan-test-app-prod-api" --namespace="pan-test-app-prod"
1822
1712
  - kubectl config use-context "kube-pan-test-app-prod-api"
1823
1713
  - kubernetesDelete
1824
- - echo 'Disabling component in Dependency Track'
1825
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
1826
1714
  environment:
1827
1715
  name: prod/api
1828
1716
  action: stop