@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
@@ -363,28 +363,6 @@ before_script:
363
363
  - 'app1 ๐Ÿ”จ app | dev '
364
364
  retry: *a1
365
365
  interruptible: true
366
- 'app1 ๐Ÿงพ sbom | dev ':
367
- stage: build
368
- image:
369
- name: aquasec/trivy:0.58.2
370
- entrypoint:
371
- - ''
372
- variables: {}
373
- script:
374
- - collapseable_section_start "injectvars" "Injecting variables"
375
- - collapseable_section_end "injectvars"
376
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app1
377
- artifacts:
378
- paths:
379
- - __sbom.json
380
- rules:
381
- - when: never
382
- if: $CI_PIPELINE_SOURCE == "trigger"
383
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
384
- needs: []
385
- retry: *a1
386
- interruptible: true
387
- allow_failure: true
388
366
  'app1 ๐Ÿš€ Deploy | dev ':
389
367
  stage: deploy dev
390
368
  image: path/to/docker/gcloud:the-version
@@ -479,8 +457,6 @@ before_script:
479
457
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app1 --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/app1@$version --quiet --delete-tags; done
480
458
  - set -e
481
459
  - collapseable_section_end "cleanup"
482
- - echo 'Uploading SBOM to Dependency Track'
483
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app1" "$ROOT_URL" "__sbom.json" vex.json || true
484
460
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
485
461
  environment:
486
462
  name: dev/app1
@@ -504,8 +480,6 @@ before_script:
504
480
  artifacts: false
505
481
  - job: 'app1 ๐Ÿงช test | dev '
506
482
  artifacts: false
507
- - job: 'app1 ๐Ÿงพ sbom | dev '
508
- artifacts: true
509
483
  - job: 'app1 ๐Ÿ›ก audit | dev '
510
484
  artifacts: false
511
485
  retry: *a1
@@ -528,8 +502,6 @@ before_script:
528
502
  - gcloud run services delete pan-test-app-dev-app1 --project=asdf --region=asia-east1
529
503
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/app1 --quiet --delete-tags
530
504
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app1 --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/app1@$version --quiet --delete-tags; done
531
- - echo 'Disabling component in Dependency Track'
532
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app1" "$CI_ENVIRONMENT_URL" || true
533
505
  - set -e
534
506
  environment:
535
507
  name: dev/app1
@@ -816,28 +788,6 @@ before_script:
816
788
  - 'app1 ๐Ÿ”จ app | review '
817
789
  retry: *a1
818
790
  interruptible: true
819
- 'app1 ๐Ÿงพ sbom | review ':
820
- stage: build
821
- image:
822
- name: aquasec/trivy:0.58.2
823
- entrypoint:
824
- - ''
825
- variables: {}
826
- script:
827
- - collapseable_section_start "injectvars" "Injecting variables"
828
- - collapseable_section_end "injectvars"
829
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app1
830
- artifacts:
831
- paths:
832
- - __sbom.json
833
- rules:
834
- - when: never
835
- if: $CI_PIPELINE_SOURCE == "trigger"
836
- - if: $CI_MERGE_REQUEST_ID
837
- needs: []
838
- retry: *a1
839
- interruptible: true
840
- allow_failure: true
841
791
  'app1 ๐Ÿš€ Deploy | review ':
842
792
  stage: deploy review
843
793
  image: path/to/docker/gcloud:the-version
@@ -935,8 +885,6 @@ before_script:
935
885
  - set -e
936
886
  - set -e
937
887
  - collapseable_section_end "cleanup"
938
- - echo 'Uploading SBOM to Dependency Track'
939
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app1" "$ROOT_URL" "__sbom.json" vex.json || true
940
888
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
941
889
  environment:
942
890
  name: review/$CI_COMMIT_REF_NAME/app1
@@ -960,8 +908,6 @@ before_script:
960
908
  artifacts: false
961
909
  - job: 'app1 ๐Ÿงช test | review '
962
910
  artifacts: false
963
- - job: 'app1 ๐Ÿงพ sbom | review '
964
- artifacts: true
965
911
  - job: 'app1 ๐Ÿ›ก audit | review '
966
912
  artifacts: false
967
913
  retry: *a1
@@ -987,8 +933,6 @@ before_script:
987
933
  - set +e
988
934
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/app1 --quiet --delete-tags
989
935
  - set -e
990
- - echo 'Disabling component in Dependency Track'
991
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app1" "$CI_ENVIRONMENT_URL" || true
992
936
  - set -e
993
937
  environment:
994
938
  name: review/$CI_COMMIT_REF_NAME/app1
@@ -1158,28 +1102,6 @@ before_script:
1158
1102
  - 'app1 ๐Ÿ”จ app | stage '
1159
1103
  retry: *a1
1160
1104
  interruptible: true
1161
- 'app1 ๐Ÿงพ sbom | stage ':
1162
- stage: build
1163
- image:
1164
- name: aquasec/trivy:0.58.2
1165
- entrypoint:
1166
- - ''
1167
- variables: {}
1168
- script:
1169
- - collapseable_section_start "injectvars" "Injecting variables"
1170
- - collapseable_section_end "injectvars"
1171
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app1
1172
- artifacts:
1173
- paths:
1174
- - __sbom.json
1175
- rules:
1176
- - when: never
1177
- if: $CI_PIPELINE_SOURCE == "trigger"
1178
- - if: $CI_COMMIT_TAG
1179
- needs: []
1180
- retry: *a1
1181
- interruptible: true
1182
- allow_failure: true
1183
1105
  'app1 ๐Ÿš€ Deploy | stage ':
1184
1106
  stage: deploy stage
1185
1107
  image: path/to/docker/gcloud:the-version
@@ -1274,8 +1196,6 @@ before_script:
1274
1196
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app1 --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/app1@$version --quiet --delete-tags; done
1275
1197
  - set -e
1276
1198
  - collapseable_section_end "cleanup"
1277
- - echo 'Uploading SBOM to Dependency Track'
1278
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app1" "$ROOT_URL" "__sbom.json" vex.json || true
1279
1199
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1280
1200
  environment:
1281
1201
  name: stage/app1
@@ -1294,8 +1214,6 @@ before_script:
1294
1214
  artifacts: false
1295
1215
  - job: 'app1 ๐Ÿ”จ docker | stage '
1296
1216
  artifacts: false
1297
- - job: 'app1 ๐Ÿงพ sbom | stage '
1298
- artifacts: true
1299
1217
  retry: *a1
1300
1218
  interruptible: true
1301
1219
  allow_failure: false
@@ -1316,8 +1234,6 @@ before_script:
1316
1234
  - gcloud run services delete pan-test-app-stage-app1 --project=asdf --region=asia-east1
1317
1235
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/app1 --quiet --delete-tags
1318
1236
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app1 --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/app1@$version --quiet --delete-tags; done
1319
- - echo 'Disabling component in Dependency Track'
1320
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app1" "$CI_ENVIRONMENT_URL" || true
1321
1237
  - set -e
1322
1238
  environment:
1323
1239
  name: stage/app1
@@ -1487,28 +1403,6 @@ before_script:
1487
1403
  - 'app1 ๐Ÿ”จ app | prod '
1488
1404
  retry: *a1
1489
1405
  interruptible: true
1490
- 'app1 ๐Ÿงพ sbom | prod ':
1491
- stage: build
1492
- image:
1493
- name: aquasec/trivy:0.58.2
1494
- entrypoint:
1495
- - ''
1496
- variables: {}
1497
- script:
1498
- - collapseable_section_start "injectvars" "Injecting variables"
1499
- - collapseable_section_end "injectvars"
1500
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app1
1501
- artifacts:
1502
- paths:
1503
- - __sbom.json
1504
- rules:
1505
- - when: never
1506
- if: $CI_PIPELINE_SOURCE == "trigger"
1507
- - if: $CI_COMMIT_TAG
1508
- needs: []
1509
- retry: *a1
1510
- interruptible: true
1511
- allow_failure: true
1512
1406
  'app1 ๐Ÿš€ Deploy | prod ':
1513
1407
  stage: deploy prod
1514
1408
  image: path/to/docker/gcloud:the-version
@@ -1603,8 +1497,6 @@ before_script:
1603
1497
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app1 --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/app1@$version --quiet --delete-tags; done
1604
1498
  - set -e
1605
1499
  - collapseable_section_end "cleanup"
1606
- - echo 'Uploading SBOM to Dependency Track'
1607
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app1" "$ROOT_URL" "__sbom.json" vex.json || true
1608
1500
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1609
1501
  environment:
1610
1502
  name: prod/app1
@@ -1623,8 +1515,6 @@ before_script:
1623
1515
  artifacts: false
1624
1516
  - job: 'app1 ๐Ÿ”จ docker | prod '
1625
1517
  artifacts: false
1626
- - job: 'app1 ๐Ÿงพ sbom | prod '
1627
- artifacts: true
1628
1518
  retry: *a1
1629
1519
  interruptible: true
1630
1520
  allow_failure: true
@@ -1645,8 +1535,6 @@ before_script:
1645
1535
  - gcloud run services delete pan-test-app-prod-app1 --project=asdf --region=asia-east1
1646
1536
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/app1 --quiet --delete-tags
1647
1537
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app1 --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/app1@$version --quiet --delete-tags; done
1648
- - echo 'Disabling component in Dependency Track'
1649
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app1" "$CI_ENVIRONMENT_URL" || true
1650
1538
  - set -e
1651
1539
  environment:
1652
1540
  name: prod/app1
@@ -1923,28 +1811,6 @@ before_script:
1923
1811
  - 'app2 ๐Ÿ”จ app | dev '
1924
1812
  retry: *a1
1925
1813
  interruptible: true
1926
- 'app2 ๐Ÿงพ sbom | dev ':
1927
- stage: build
1928
- image:
1929
- name: aquasec/trivy:0.58.2
1930
- entrypoint:
1931
- - ''
1932
- variables: {}
1933
- script:
1934
- - collapseable_section_start "injectvars" "Injecting variables"
1935
- - collapseable_section_end "injectvars"
1936
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app2
1937
- artifacts:
1938
- paths:
1939
- - __sbom.json
1940
- rules:
1941
- - when: never
1942
- if: $CI_PIPELINE_SOURCE == "trigger"
1943
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1944
- needs: []
1945
- retry: *a1
1946
- interruptible: true
1947
- allow_failure: true
1948
1814
  'app2 ๐Ÿš€ Deploy | dev ':
1949
1815
  stage: deploy dev
1950
1816
  image: path/to/docker/gcloud:the-version
@@ -2045,8 +1911,6 @@ before_script:
2045
1911
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app2 --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/app2@$version --quiet --delete-tags; done
2046
1912
  - set -e
2047
1913
  - collapseable_section_end "cleanup"
2048
- - echo 'Uploading SBOM to Dependency Track'
2049
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app2" "$ROOT_URL" "__sbom.json" vex.json || true
2050
1914
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
2051
1915
  environment:
2052
1916
  name: dev/app2
@@ -2070,8 +1934,6 @@ before_script:
2070
1934
  artifacts: false
2071
1935
  - job: 'app2 ๐Ÿงช test | dev '
2072
1936
  artifacts: false
2073
- - job: 'app2 ๐Ÿงพ sbom | dev '
2074
- artifacts: true
2075
1937
  - job: 'app2 ๐Ÿ›ก audit | dev '
2076
1938
  artifacts: false
2077
1939
  retry: *a1
@@ -2094,8 +1956,6 @@ before_script:
2094
1956
  - gcloud run services delete pan-test-app-dev-app2 --project=asdf --region=asia-east1
2095
1957
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/app2 --quiet --delete-tags
2096
1958
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app2 --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/app2@$version --quiet --delete-tags; done
2097
- - echo 'Disabling component in Dependency Track'
2098
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app2" "$CI_ENVIRONMENT_URL" || true
2099
1959
  - set -e
2100
1960
  environment:
2101
1961
  name: dev/app2
@@ -2386,28 +2246,6 @@ before_script:
2386
2246
  - 'app2 ๐Ÿ”จ app | review '
2387
2247
  retry: *a1
2388
2248
  interruptible: true
2389
- 'app2 ๐Ÿงพ sbom | review ':
2390
- stage: build
2391
- image:
2392
- name: aquasec/trivy:0.58.2
2393
- entrypoint:
2394
- - ''
2395
- variables: {}
2396
- script:
2397
- - collapseable_section_start "injectvars" "Injecting variables"
2398
- - collapseable_section_end "injectvars"
2399
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app2
2400
- artifacts:
2401
- paths:
2402
- - __sbom.json
2403
- rules:
2404
- - when: never
2405
- if: $CI_PIPELINE_SOURCE == "trigger"
2406
- - if: $CI_MERGE_REQUEST_ID
2407
- needs: []
2408
- retry: *a1
2409
- interruptible: true
2410
- allow_failure: true
2411
2249
  'app2 ๐Ÿš€ Deploy | review ':
2412
2250
  stage: deploy review
2413
2251
  image: path/to/docker/gcloud:the-version
@@ -2511,8 +2349,6 @@ before_script:
2511
2349
  - set -e
2512
2350
  - set -e
2513
2351
  - collapseable_section_end "cleanup"
2514
- - echo 'Uploading SBOM to Dependency Track'
2515
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app2" "$ROOT_URL" "__sbom.json" vex.json || true
2516
2352
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
2517
2353
  environment:
2518
2354
  name: review/$CI_COMMIT_REF_NAME/app2
@@ -2536,8 +2372,6 @@ before_script:
2536
2372
  artifacts: false
2537
2373
  - job: 'app2 ๐Ÿงช test | review '
2538
2374
  artifacts: false
2539
- - job: 'app2 ๐Ÿงพ sbom | review '
2540
- artifacts: true
2541
2375
  - job: 'app2 ๐Ÿ›ก audit | review '
2542
2376
  artifacts: false
2543
2377
  retry: *a1
@@ -2563,8 +2397,6 @@ before_script:
2563
2397
  - set +e
2564
2398
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/app2 --quiet --delete-tags
2565
2399
  - set -e
2566
- - echo 'Disabling component in Dependency Track'
2567
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app2" "$CI_ENVIRONMENT_URL" || true
2568
2400
  - set -e
2569
2401
  environment:
2570
2402
  name: review/$CI_COMMIT_REF_NAME/app2
@@ -2738,28 +2570,6 @@ before_script:
2738
2570
  - 'app2 ๐Ÿ”จ app | stage '
2739
2571
  retry: *a1
2740
2572
  interruptible: true
2741
- 'app2 ๐Ÿงพ sbom | stage ':
2742
- stage: build
2743
- image:
2744
- name: aquasec/trivy:0.58.2
2745
- entrypoint:
2746
- - ''
2747
- variables: {}
2748
- script:
2749
- - collapseable_section_start "injectvars" "Injecting variables"
2750
- - collapseable_section_end "injectvars"
2751
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app2
2752
- artifacts:
2753
- paths:
2754
- - __sbom.json
2755
- rules:
2756
- - when: never
2757
- if: $CI_PIPELINE_SOURCE == "trigger"
2758
- - if: $CI_COMMIT_TAG
2759
- needs: []
2760
- retry: *a1
2761
- interruptible: true
2762
- allow_failure: true
2763
2573
  'app2 ๐Ÿš€ Deploy | stage ':
2764
2574
  stage: deploy stage
2765
2575
  image: path/to/docker/gcloud:the-version
@@ -2860,8 +2670,6 @@ before_script:
2860
2670
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app2 --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/app2@$version --quiet --delete-tags; done
2861
2671
  - set -e
2862
2672
  - collapseable_section_end "cleanup"
2863
- - echo 'Uploading SBOM to Dependency Track'
2864
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app2" "$ROOT_URL" "__sbom.json" vex.json || true
2865
2673
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
2866
2674
  environment:
2867
2675
  name: stage/app2
@@ -2880,8 +2688,6 @@ before_script:
2880
2688
  artifacts: false
2881
2689
  - job: 'app2 ๐Ÿ”จ docker | stage '
2882
2690
  artifacts: false
2883
- - job: 'app2 ๐Ÿงพ sbom | stage '
2884
- artifacts: true
2885
2691
  retry: *a1
2886
2692
  interruptible: true
2887
2693
  allow_failure: false
@@ -2902,8 +2708,6 @@ before_script:
2902
2708
  - gcloud run services delete pan-test-app-stage-app2 --project=asdf --region=asia-east1
2903
2709
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/app2 --quiet --delete-tags
2904
2710
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app2 --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/app2@$version --quiet --delete-tags; done
2905
- - echo 'Disabling component in Dependency Track'
2906
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app2" "$CI_ENVIRONMENT_URL" || true
2907
2711
  - set -e
2908
2712
  environment:
2909
2713
  name: stage/app2
@@ -3077,28 +2881,6 @@ before_script:
3077
2881
  - 'app2 ๐Ÿ”จ app | prod '
3078
2882
  retry: *a1
3079
2883
  interruptible: true
3080
- 'app2 ๐Ÿงพ sbom | prod ':
3081
- stage: build
3082
- image:
3083
- name: aquasec/trivy:0.58.2
3084
- entrypoint:
3085
- - ''
3086
- variables: {}
3087
- script:
3088
- - collapseable_section_start "injectvars" "Injecting variables"
3089
- - collapseable_section_end "injectvars"
3090
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app2
3091
- artifacts:
3092
- paths:
3093
- - __sbom.json
3094
- rules:
3095
- - when: never
3096
- if: $CI_PIPELINE_SOURCE == "trigger"
3097
- - if: $CI_COMMIT_TAG
3098
- needs: []
3099
- retry: *a1
3100
- interruptible: true
3101
- allow_failure: true
3102
2884
  'app2 ๐Ÿš€ Deploy | prod ':
3103
2885
  stage: deploy prod
3104
2886
  image: path/to/docker/gcloud:the-version
@@ -3199,8 +2981,6 @@ before_script:
3199
2981
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app2 --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/app2@$version --quiet --delete-tags; done
3200
2982
  - set -e
3201
2983
  - collapseable_section_end "cleanup"
3202
- - echo 'Uploading SBOM to Dependency Track'
3203
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app2" "$ROOT_URL" "__sbom.json" vex.json || true
3204
2984
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
3205
2985
  environment:
3206
2986
  name: prod/app2
@@ -3219,8 +2999,6 @@ before_script:
3219
2999
  artifacts: false
3220
3000
  - job: 'app2 ๐Ÿ”จ docker | prod '
3221
3001
  artifacts: false
3222
- - job: 'app2 ๐Ÿงพ sbom | prod '
3223
- artifacts: true
3224
3002
  retry: *a1
3225
3003
  interruptible: true
3226
3004
  allow_failure: true
@@ -3241,8 +3019,6 @@ before_script:
3241
3019
  - gcloud run services delete pan-test-app-prod-app2 --project=asdf --region=asia-east1
3242
3020
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/app2 --quiet --delete-tags
3243
3021
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/app2 --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/app2@$version --quiet --delete-tags; done
3244
- - echo 'Disabling component in Dependency Track'
3245
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app2" "$CI_ENVIRONMENT_URL" || true
3246
3022
  - set -e
3247
3023
  environment:
3248
3024
  name: prod/app2
@@ -3513,28 +3289,6 @@ before_script:
3513
3289
  - 'app3 ๐Ÿ”จ app | dev '
3514
3290
  retry: *a1
3515
3291
  interruptible: true
3516
- 'app3 ๐Ÿงพ sbom | dev ':
3517
- stage: build
3518
- image:
3519
- name: aquasec/trivy:0.58.2
3520
- entrypoint:
3521
- - ''
3522
- variables: {}
3523
- script:
3524
- - collapseable_section_start "injectvars" "Injecting variables"
3525
- - collapseable_section_end "injectvars"
3526
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" kube
3527
- artifacts:
3528
- paths:
3529
- - __sbom.json
3530
- rules:
3531
- - when: never
3532
- if: $CI_PIPELINE_SOURCE == "trigger"
3533
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
3534
- needs: []
3535
- retry: *a1
3536
- interruptible: true
3537
- allow_failure: true
3538
3292
  'app3 ๐Ÿš€ Deploy | dev ':
3539
3293
  stage: deploy dev
3540
3294
  image: path/to/docker/kubernetes:the-version
@@ -3644,8 +3398,6 @@ before_script:
3644
3398
  - collapseable_section_end "writeallvalues"
3645
3399
  - kubernetesCreateSecret
3646
3400
  - kubernetesDeploy
3647
- - echo 'Uploading SBOM to Dependency Track'
3648
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app3" "$ROOT_URL" "__sbom.json" vex.json || true
3649
3401
  - echo deployment successful ๐Ÿ˜ป
3650
3402
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
3651
3403
  environment:
@@ -3670,8 +3422,6 @@ before_script:
3670
3422
  artifacts: false
3671
3423
  - job: 'app3 ๐Ÿงช test | dev '
3672
3424
  artifacts: false
3673
- - job: 'app3 ๐Ÿงพ sbom | dev '
3674
- artifacts: true
3675
3425
  - job: 'app3 ๐Ÿ›ก audit | dev '
3676
3426
  artifacts: false
3677
3427
  retry: *a1
@@ -3718,8 +3468,6 @@ before_script:
3718
3468
  - kubectl config set-context "kube-pan-test-app-dev-app3" --cluster="kube-pan-test-app-dev-app3" --user="kube-pan-test-app-dev-app3" --namespace="pan-test-app-dev"
3719
3469
  - kubectl config use-context "kube-pan-test-app-dev-app3"
3720
3470
  - kubernetesDelete
3721
- - echo 'Disabling component in Dependency Track'
3722
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app3" "$CI_ENVIRONMENT_URL" || true
3723
3471
  environment:
3724
3472
  name: dev/app3
3725
3473
  action: stop
@@ -4056,28 +3804,6 @@ before_script:
4056
3804
  - 'app3 ๐Ÿ”จ app | review '
4057
3805
  retry: *a1
4058
3806
  interruptible: true
4059
- 'app3 ๐Ÿงพ sbom | review ':
4060
- stage: build
4061
- image:
4062
- name: aquasec/trivy:0.58.2
4063
- entrypoint:
4064
- - ''
4065
- variables: {}
4066
- script:
4067
- - collapseable_section_start "injectvars" "Injecting variables"
4068
- - collapseable_section_end "injectvars"
4069
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" kube
4070
- artifacts:
4071
- paths:
4072
- - __sbom.json
4073
- rules:
4074
- - when: never
4075
- if: $CI_PIPELINE_SOURCE == "trigger"
4076
- - if: $CI_MERGE_REQUEST_ID
4077
- needs: []
4078
- retry: *a1
4079
- interruptible: true
4080
- allow_failure: true
4081
3807
  'app3 ๐Ÿš€ Deploy | review ':
4082
3808
  stage: deploy review
4083
3809
  image: path/to/docker/kubernetes:the-version
@@ -4188,8 +3914,6 @@ before_script:
4188
3914
  - collapseable_section_end "writeallvalues"
4189
3915
  - kubernetesCreateSecret
4190
3916
  - kubernetesDeploy
4191
- - echo 'Uploading SBOM to Dependency Track'
4192
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app3" "$ROOT_URL" "__sbom.json" vex.json || true
4193
3917
  - echo deployment successful ๐Ÿ˜ป
4194
3918
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
4195
3919
  environment:
@@ -4214,8 +3938,6 @@ before_script:
4214
3938
  artifacts: false
4215
3939
  - job: 'app3 ๐Ÿงช test | review '
4216
3940
  artifacts: false
4217
- - job: 'app3 ๐Ÿงพ sbom | review '
4218
- artifacts: true
4219
3941
  - job: 'app3 ๐Ÿ›ก audit | review '
4220
3942
  artifacts: false
4221
3943
  retry: *a1
@@ -4262,8 +3984,6 @@ before_script:
4262
3984
  - 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"; })-app3" --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"; })-app3" --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"; })-app3" --namespace="pan-test-app-review"
4263
3985
  - 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"; })-app3"
4264
3986
  - kubernetesDelete
4265
- - echo 'Disabling component in Dependency Track'
4266
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app3" "$CI_ENVIRONMENT_URL" || true
4267
3987
  environment:
4268
3988
  name: review/$CI_COMMIT_REF_NAME/app3
4269
3989
  action: stop
@@ -4483,28 +4203,6 @@ before_script:
4483
4203
  - 'app3 ๐Ÿ”จ app | stage '
4484
4204
  retry: *a1
4485
4205
  interruptible: true
4486
- 'app3 ๐Ÿงพ sbom | stage ':
4487
- stage: build
4488
- image:
4489
- name: aquasec/trivy:0.58.2
4490
- entrypoint:
4491
- - ''
4492
- variables: {}
4493
- script:
4494
- - collapseable_section_start "injectvars" "Injecting variables"
4495
- - collapseable_section_end "injectvars"
4496
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" kube
4497
- artifacts:
4498
- paths:
4499
- - __sbom.json
4500
- rules:
4501
- - when: never
4502
- if: $CI_PIPELINE_SOURCE == "trigger"
4503
- - if: $CI_COMMIT_TAG
4504
- needs: []
4505
- retry: *a1
4506
- interruptible: true
4507
- allow_failure: true
4508
4206
  'app3 ๐Ÿš€ Deploy | stage ':
4509
4207
  stage: deploy stage
4510
4208
  image: path/to/docker/kubernetes:the-version
@@ -4614,8 +4312,6 @@ before_script:
4614
4312
  - collapseable_section_end "writeallvalues"
4615
4313
  - kubernetesCreateSecret
4616
4314
  - kubernetesDeploy
4617
- - echo 'Uploading SBOM to Dependency Track'
4618
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app3" "$ROOT_URL" "__sbom.json" vex.json || true
4619
4315
  - echo deployment successful ๐Ÿ˜ป
4620
4316
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
4621
4317
  environment:
@@ -4635,8 +4331,6 @@ before_script:
4635
4331
  artifacts: false
4636
4332
  - job: 'app3 ๐Ÿ”จ docker | stage '
4637
4333
  artifacts: false
4638
- - job: 'app3 ๐Ÿงพ sbom | stage '
4639
- artifacts: true
4640
4334
  retry: *a1
4641
4335
  interruptible: true
4642
4336
  allow_failure: false
@@ -4681,8 +4375,6 @@ before_script:
4681
4375
  - kubectl config set-context "kube-pan-test-app-stage-app3" --cluster="kube-pan-test-app-stage-app3" --user="kube-pan-test-app-stage-app3" --namespace="pan-test-app-stage"
4682
4376
  - kubectl config use-context "kube-pan-test-app-stage-app3"
4683
4377
  - kubernetesDelete
4684
- - echo 'Disabling component in Dependency Track'
4685
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app3" "$CI_ENVIRONMENT_URL" || true
4686
4378
  environment:
4687
4379
  name: stage/app3
4688
4380
  action: stop
@@ -4902,28 +4594,6 @@ before_script:
4902
4594
  - 'app3 ๐Ÿ”จ app | prod '
4903
4595
  retry: *a1
4904
4596
  interruptible: true
4905
- 'app3 ๐Ÿงพ sbom | prod ':
4906
- stage: build
4907
- image:
4908
- name: aquasec/trivy:0.58.2
4909
- entrypoint:
4910
- - ''
4911
- variables: {}
4912
- script:
4913
- - collapseable_section_start "injectvars" "Injecting variables"
4914
- - collapseable_section_end "injectvars"
4915
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" kube
4916
- artifacts:
4917
- paths:
4918
- - __sbom.json
4919
- rules:
4920
- - when: never
4921
- if: $CI_PIPELINE_SOURCE == "trigger"
4922
- - if: $CI_COMMIT_TAG
4923
- needs: []
4924
- retry: *a1
4925
- interruptible: true
4926
- allow_failure: true
4927
4597
  'app3 ๐Ÿš€ Deploy | prod ':
4928
4598
  stage: deploy prod
4929
4599
  image: path/to/docker/kubernetes:the-version
@@ -5033,8 +4703,6 @@ before_script:
5033
4703
  - collapseable_section_end "writeallvalues"
5034
4704
  - kubernetesCreateSecret
5035
4705
  - kubernetesDeploy
5036
- - echo 'Uploading SBOM to Dependency Track'
5037
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app3" "$ROOT_URL" "__sbom.json" vex.json || true
5038
4706
  - echo deployment successful ๐Ÿ˜ป
5039
4707
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
5040
4708
  environment:
@@ -5054,8 +4722,6 @@ before_script:
5054
4722
  artifacts: false
5055
4723
  - job: 'app3 ๐Ÿ”จ docker | prod '
5056
4724
  artifacts: false
5057
- - job: 'app3 ๐Ÿงพ sbom | prod '
5058
- artifacts: true
5059
4725
  retry: *a1
5060
4726
  interruptible: true
5061
4727
  allow_failure: true
@@ -5100,8 +4766,6 @@ before_script:
5100
4766
  - kubectl config set-context "kube-pan-test-app-prod-app3" --cluster="kube-pan-test-app-prod-app3" --user="kube-pan-test-app-prod-app3" --namespace="pan-test-app-prod"
5101
4767
  - kubectl config use-context "kube-pan-test-app-prod-app3"
5102
4768
  - kubernetesDelete
5103
- - echo 'Disabling component in Dependency Track'
5104
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/app3" "$CI_ENVIRONMENT_URL" || true
5105
4769
  environment:
5106
4770
  name: prod/app3
5107
4771
  action: stop