@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
@@ -311,28 +311,6 @@ before_script:
311
311
  needs: []
312
312
  retry: *a1
313
313
  interruptible: true
314
- 'app ๐Ÿงพ sbom | dev ':
315
- stage: build
316
- image:
317
- name: aquasec/trivy:0.58.2
318
- entrypoint:
319
- - ''
320
- variables: {}
321
- script:
322
- - collapseable_section_start "injectvars" "Injecting variables"
323
- - collapseable_section_end "injectvars"
324
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
325
- artifacts:
326
- paths:
327
- - __sbom.json
328
- rules:
329
- - when: never
330
- if: $CI_PIPELINE_SOURCE == "trigger"
331
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
332
- needs: []
333
- retry: *a1
334
- interruptible: true
335
- allow_failure: true
336
314
  'app ๐Ÿš€ Deploy | dev ':
337
315
  stage: deploy dev
338
316
  tags:
@@ -367,8 +345,6 @@ before_script:
367
345
  - gem install bundler
368
346
  - bundle install
369
347
  - bundle exec fastlane deploy_test
370
- - echo 'Uploading SBOM to Dependency Track'
371
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app" "$ROOT_URL" "__sbom.json" vex.json || true
372
348
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
373
349
  cache:
374
350
  - key:
@@ -395,8 +371,6 @@ before_script:
395
371
  artifacts: true
396
372
  - job: 'app ๐Ÿงช test | dev '
397
373
  artifacts: false
398
- - job: 'app ๐Ÿงพ sbom | dev '
399
- artifacts: true
400
374
  - job: 'app ๐Ÿ›ก audit | dev '
401
375
  artifacts: false
402
376
  retry: *a1
@@ -621,28 +595,6 @@ before_script:
621
595
  needs: []
622
596
  retry: *a1
623
597
  interruptible: true
624
- 'app ๐Ÿงพ sbom | review ':
625
- stage: build
626
- image:
627
- name: aquasec/trivy:0.58.2
628
- entrypoint:
629
- - ''
630
- variables: {}
631
- script:
632
- - collapseable_section_start "injectvars" "Injecting variables"
633
- - collapseable_section_end "injectvars"
634
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
635
- artifacts:
636
- paths:
637
- - __sbom.json
638
- rules:
639
- - when: never
640
- if: $CI_PIPELINE_SOURCE == "trigger"
641
- - if: $CI_MERGE_REQUEST_ID
642
- needs: []
643
- retry: *a1
644
- interruptible: true
645
- allow_failure: true
646
598
  'app ๐Ÿš€ Deploy | review ':
647
599
  stage: deploy review
648
600
  tags:
@@ -677,8 +629,6 @@ before_script:
677
629
  - gem install bundler
678
630
  - bundle install
679
631
  - bundle exec fastlane deploy_test
680
- - echo 'Uploading SBOM to Dependency Track'
681
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app" "$ROOT_URL" "__sbom.json" vex.json || true
682
632
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
683
633
  cache:
684
634
  - key:
@@ -705,8 +655,6 @@ before_script:
705
655
  artifacts: true
706
656
  - job: 'app ๐Ÿงช test | review '
707
657
  artifacts: false
708
- - job: 'app ๐Ÿงพ sbom | review '
709
- artifacts: true
710
658
  - job: 'app ๐Ÿ›ก audit | review '
711
659
  artifacts: false
712
660
  retry: *a1
@@ -810,28 +758,6 @@ before_script:
810
758
  needs: []
811
759
  retry: *a1
812
760
  interruptible: true
813
- 'app ๐Ÿงพ sbom | stage ':
814
- stage: build
815
- image:
816
- name: aquasec/trivy:0.58.2
817
- entrypoint:
818
- - ''
819
- variables: {}
820
- script:
821
- - collapseable_section_start "injectvars" "Injecting variables"
822
- - collapseable_section_end "injectvars"
823
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
824
- artifacts:
825
- paths:
826
- - __sbom.json
827
- rules:
828
- - when: never
829
- if: $CI_PIPELINE_SOURCE == "trigger"
830
- - if: $CI_COMMIT_TAG
831
- needs: []
832
- retry: *a1
833
- interruptible: true
834
- allow_failure: true
835
761
  'app ๐Ÿš€ Deploy | stage ':
836
762
  stage: deploy stage
837
763
  tags:
@@ -866,8 +792,6 @@ before_script:
866
792
  - gem install bundler
867
793
  - bundle install
868
794
  - bundle exec fastlane deploy_test
869
- - echo 'Uploading SBOM to Dependency Track'
870
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app" "$ROOT_URL" "__sbom.json" vex.json || true
871
795
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
872
796
  cache:
873
797
  - key:
@@ -890,8 +814,6 @@ before_script:
890
814
  needs:
891
815
  - job: 'app ๐Ÿ”จ app | stage '
892
816
  artifacts: true
893
- - job: 'app ๐Ÿงพ sbom | stage '
894
- artifacts: true
895
817
  retry: *a1
896
818
  interruptible: true
897
819
  allow_failure: false
@@ -993,28 +915,6 @@ before_script:
993
915
  needs: []
994
916
  retry: *a1
995
917
  interruptible: true
996
- 'app ๐Ÿงพ sbom | prod ':
997
- stage: build
998
- image:
999
- name: aquasec/trivy:0.58.2
1000
- entrypoint:
1001
- - ''
1002
- variables: {}
1003
- script:
1004
- - collapseable_section_start "injectvars" "Injecting variables"
1005
- - collapseable_section_end "injectvars"
1006
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" app
1007
- artifacts:
1008
- paths:
1009
- - __sbom.json
1010
- rules:
1011
- - when: never
1012
- if: $CI_PIPELINE_SOURCE == "trigger"
1013
- - if: $CI_COMMIT_TAG
1014
- needs: []
1015
- retry: *a1
1016
- interruptible: true
1017
- allow_failure: true
1018
918
  'app ๐Ÿš€ Deploy | prod ':
1019
919
  stage: deploy prod
1020
920
  tags:
@@ -1049,8 +949,6 @@ before_script:
1049
949
  - gem install bundler
1050
950
  - bundle install
1051
951
  - bundle exec fastlane deploy_test
1052
- - echo 'Uploading SBOM to Dependency Track'
1053
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/app" "$ROOT_URL" "__sbom.json" vex.json || true
1054
952
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1055
953
  cache:
1056
954
  - key:
@@ -1073,8 +971,6 @@ before_script:
1073
971
  needs:
1074
972
  - job: 'app ๐Ÿ”จ app | prod '
1075
973
  artifacts: true
1076
- - job: 'app ๐Ÿงพ sbom | prod '
1077
- artifacts: true
1078
974
  retry: *a1
1079
975
  interruptible: true
1080
976
  allow_failure: true
@@ -1327,28 +1223,6 @@ before_script:
1327
1223
  - 'api ๐Ÿ”จ app | dev '
1328
1224
  retry: *a1
1329
1225
  interruptible: true
1330
- 'api ๐Ÿงพ sbom | dev ':
1331
- stage: build
1332
- image:
1333
- name: aquasec/trivy:0.58.2
1334
- entrypoint:
1335
- - ''
1336
- variables: {}
1337
- script:
1338
- - collapseable_section_start "injectvars" "Injecting variables"
1339
- - collapseable_section_end "injectvars"
1340
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
1341
- artifacts:
1342
- paths:
1343
- - __sbom.json
1344
- rules:
1345
- - when: never
1346
- if: $CI_PIPELINE_SOURCE == "trigger"
1347
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
1348
- needs: []
1349
- retry: *a1
1350
- interruptible: true
1351
- allow_failure: true
1352
1226
  'api ๐Ÿš€ Deploy | dev ':
1353
1227
  stage: deploy dev
1354
1228
  image: path/to/docker/gcloud:the-version
@@ -1428,8 +1302,6 @@ before_script:
1428
1302
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/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 asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
1429
1303
  - set -e
1430
1304
  - collapseable_section_end "cleanup"
1431
- - echo 'Uploading SBOM to Dependency Track'
1432
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
1433
1305
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1434
1306
  environment:
1435
1307
  name: dev/api
@@ -1453,8 +1325,6 @@ before_script:
1453
1325
  artifacts: false
1454
1326
  - job: 'api ๐Ÿงช test | dev '
1455
1327
  artifacts: false
1456
- - job: 'api ๐Ÿงพ sbom | dev '
1457
- artifacts: true
1458
1328
  - job: 'api ๐Ÿ›ก audit | dev '
1459
1329
  artifacts: false
1460
1330
  retry: *a1
@@ -1477,8 +1347,6 @@ before_script:
1477
1347
  - gcloud run services delete pan-test-app-dev-api --project=asdf --region=asia-east1
1478
1348
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/api --quiet --delete-tags
1479
1349
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/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 asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
1480
- - echo 'Disabling component in Dependency Track'
1481
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
1482
1350
  - set -e
1483
1351
  environment:
1484
1352
  name: dev/api
@@ -1755,28 +1623,6 @@ before_script:
1755
1623
  - 'api ๐Ÿ”จ app | review '
1756
1624
  retry: *a1
1757
1625
  interruptible: true
1758
- 'api ๐Ÿงพ sbom | review ':
1759
- stage: build
1760
- image:
1761
- name: aquasec/trivy:0.58.2
1762
- entrypoint:
1763
- - ''
1764
- variables: {}
1765
- script:
1766
- - collapseable_section_start "injectvars" "Injecting variables"
1767
- - collapseable_section_end "injectvars"
1768
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
1769
- artifacts:
1770
- paths:
1771
- - __sbom.json
1772
- rules:
1773
- - when: never
1774
- if: $CI_PIPELINE_SOURCE == "trigger"
1775
- - if: $CI_MERGE_REQUEST_ID
1776
- needs: []
1777
- retry: *a1
1778
- interruptible: true
1779
- allow_failure: true
1780
1626
  'api ๐Ÿš€ Deploy | review ':
1781
1627
  stage: deploy review
1782
1628
  image: path/to/docker/gcloud:the-version
@@ -1859,8 +1705,6 @@ before_script:
1859
1705
  - set -e
1860
1706
  - set -e
1861
1707
  - collapseable_section_end "cleanup"
1862
- - echo 'Uploading SBOM to Dependency Track'
1863
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
1864
1708
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1865
1709
  environment:
1866
1710
  name: review/$CI_COMMIT_REF_NAME/api
@@ -1884,8 +1728,6 @@ before_script:
1884
1728
  artifacts: false
1885
1729
  - job: 'api ๐Ÿงช test | review '
1886
1730
  artifacts: false
1887
- - job: 'api ๐Ÿงพ sbom | review '
1888
- artifacts: true
1889
1731
  - job: 'api ๐Ÿ›ก audit | review '
1890
1732
  artifacts: false
1891
1733
  retry: *a1
@@ -1911,8 +1753,6 @@ before_script:
1911
1753
  - set +e
1912
1754
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/api --quiet --delete-tags
1913
1755
  - set -e
1914
- - echo 'Disabling component in Dependency Track'
1915
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
1916
1756
  - set -e
1917
1757
  environment:
1918
1758
  name: review/$CI_COMMIT_REF_NAME/api
@@ -2072,28 +1912,6 @@ before_script:
2072
1912
  - 'api ๐Ÿ”จ app | stage '
2073
1913
  retry: *a1
2074
1914
  interruptible: true
2075
- 'api ๐Ÿงพ sbom | stage ':
2076
- stage: build
2077
- image:
2078
- name: aquasec/trivy:0.58.2
2079
- entrypoint:
2080
- - ''
2081
- variables: {}
2082
- script:
2083
- - collapseable_section_start "injectvars" "Injecting variables"
2084
- - collapseable_section_end "injectvars"
2085
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
2086
- artifacts:
2087
- paths:
2088
- - __sbom.json
2089
- rules:
2090
- - when: never
2091
- if: $CI_PIPELINE_SOURCE == "trigger"
2092
- - if: $CI_COMMIT_TAG
2093
- needs: []
2094
- retry: *a1
2095
- interruptible: true
2096
- allow_failure: true
2097
1915
  'api ๐Ÿš€ Deploy | stage ':
2098
1916
  stage: deploy stage
2099
1917
  image: path/to/docker/gcloud:the-version
@@ -2173,8 +1991,6 @@ before_script:
2173
1991
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/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 asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
2174
1992
  - set -e
2175
1993
  - collapseable_section_end "cleanup"
2176
- - echo 'Uploading SBOM to Dependency Track'
2177
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
2178
1994
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
2179
1995
  environment:
2180
1996
  name: stage/api
@@ -2193,8 +2009,6 @@ before_script:
2193
2009
  artifacts: false
2194
2010
  - job: 'api ๐Ÿ”จ docker | stage '
2195
2011
  artifacts: false
2196
- - job: 'api ๐Ÿงพ sbom | stage '
2197
- artifacts: true
2198
2012
  retry: *a1
2199
2013
  interruptible: true
2200
2014
  allow_failure: false
@@ -2215,8 +2029,6 @@ before_script:
2215
2029
  - gcloud run services delete pan-test-app-stage-api --project=asdf --region=asia-east1
2216
2030
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/api --quiet --delete-tags
2217
2031
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/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 asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
2218
- - echo 'Disabling component in Dependency Track'
2219
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
2220
2032
  - set -e
2221
2033
  environment:
2222
2034
  name: stage/api
@@ -2376,28 +2188,6 @@ before_script:
2376
2188
  - 'api ๐Ÿ”จ app | prod '
2377
2189
  retry: *a1
2378
2190
  interruptible: true
2379
- 'api ๐Ÿงพ sbom | prod ':
2380
- stage: build
2381
- image:
2382
- name: aquasec/trivy:0.58.2
2383
- entrypoint:
2384
- - ''
2385
- variables: {}
2386
- script:
2387
- - collapseable_section_start "injectvars" "Injecting variables"
2388
- - collapseable_section_end "injectvars"
2389
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
2390
- artifacts:
2391
- paths:
2392
- - __sbom.json
2393
- rules:
2394
- - when: never
2395
- if: $CI_PIPELINE_SOURCE == "trigger"
2396
- - if: $CI_COMMIT_TAG
2397
- needs: []
2398
- retry: *a1
2399
- interruptible: true
2400
- allow_failure: true
2401
2191
  'api ๐Ÿš€ Deploy | prod ':
2402
2192
  stage: deploy prod
2403
2193
  image: path/to/docker/gcloud:the-version
@@ -2477,8 +2267,6 @@ before_script:
2477
2267
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/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 asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
2478
2268
  - set -e
2479
2269
  - collapseable_section_end "cleanup"
2480
- - echo 'Uploading SBOM to Dependency Track'
2481
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
2482
2270
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
2483
2271
  environment:
2484
2272
  name: prod/api
@@ -2497,8 +2285,6 @@ before_script:
2497
2285
  artifacts: false
2498
2286
  - job: 'api ๐Ÿ”จ docker | prod '
2499
2287
  artifacts: false
2500
- - job: 'api ๐Ÿงพ sbom | prod '
2501
- artifacts: true
2502
2288
  retry: *a1
2503
2289
  interruptible: true
2504
2290
  allow_failure: true
@@ -2519,8 +2305,6 @@ before_script:
2519
2305
  - gcloud run services delete pan-test-app-prod-api --project=asdf --region=asia-east1
2520
2306
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/api --quiet --delete-tags
2521
2307
  - gcloud artifacts docker images list asia-east1-docker.pkg.dev/asdf/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 asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
2522
- - echo 'Disabling component in Dependency Track'
2523
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
2524
2308
  - set -e
2525
2309
  environment:
2526
2310
  name: prod/api
@@ -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
@@ -781,28 +753,6 @@ before_script:
781
753
  - 'www ๐Ÿ”จ app | review '
782
754
  retry: *a1
783
755
  interruptible: true
784
- 'www ๐Ÿงพ sbom | review ':
785
- stage: build
786
- image:
787
- name: aquasec/trivy:0.58.2
788
- entrypoint:
789
- - ''
790
- variables: {}
791
- script:
792
- - collapseable_section_start "injectvars" "Injecting variables"
793
- - collapseable_section_end "injectvars"
794
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
795
- artifacts:
796
- paths:
797
- - __sbom.json
798
- rules:
799
- - when: never
800
- if: $CI_PIPELINE_SOURCE == "trigger"
801
- - if: $CI_MERGE_REQUEST_ID
802
- needs: []
803
- retry: *a1
804
- interruptible: true
805
- allow_failure: true
806
756
  'www ๐Ÿš€ Deploy | review ':
807
757
  stage: deploy review
808
758
  image: path/to/docker/gcloud:the-version
@@ -885,8 +835,6 @@ before_script:
885
835
  - set -e
886
836
  - set -e
887
837
  - collapseable_section_end "cleanup"
888
- - echo 'Uploading SBOM to Dependency Track'
889
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
890
838
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
891
839
  environment:
892
840
  name: review/$CI_COMMIT_REF_NAME/www
@@ -910,8 +858,6 @@ before_script:
910
858
  artifacts: false
911
859
  - job: 'www ๐Ÿงช test | review '
912
860
  artifacts: false
913
- - job: 'www ๐Ÿงพ sbom | review '
914
- artifacts: true
915
861
  - job: 'www ๐Ÿ›ก audit | review '
916
862
  artifacts: false
917
863
  retry: *a1
@@ -937,8 +883,6 @@ before_script:
937
883
  - set +e
938
884
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/www --quiet --delete-tags
939
885
  - set -e
940
- - echo 'Disabling component in Dependency Track'
941
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
942
886
  - set -e
943
887
  environment:
944
888
  name: review/$CI_COMMIT_REF_NAME/www
@@ -1098,28 +1042,6 @@ before_script:
1098
1042
  - 'www ๐Ÿ”จ app | stage '
1099
1043
  retry: *a1
1100
1044
  interruptible: true
1101
- 'www ๐Ÿงพ sbom | stage ':
1102
- stage: build
1103
- image:
1104
- name: aquasec/trivy:0.58.2
1105
- entrypoint:
1106
- - ''
1107
- variables: {}
1108
- script:
1109
- - collapseable_section_start "injectvars" "Injecting variables"
1110
- - collapseable_section_end "injectvars"
1111
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
1112
- artifacts:
1113
- paths:
1114
- - __sbom.json
1115
- rules:
1116
- - when: never
1117
- if: $CI_PIPELINE_SOURCE == "trigger"
1118
- - if: $CI_COMMIT_TAG
1119
- needs: []
1120
- retry: *a1
1121
- interruptible: true
1122
- allow_failure: true
1123
1045
  'www ๐Ÿš€ Deploy | stage ':
1124
1046
  stage: deploy stage
1125
1047
  image: path/to/docker/gcloud:the-version
@@ -1199,8 +1121,6 @@ before_script:
1199
1121
  - 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
1200
1122
  - set -e
1201
1123
  - collapseable_section_end "cleanup"
1202
- - echo 'Uploading SBOM to Dependency Track'
1203
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
1204
1124
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1205
1125
  environment:
1206
1126
  name: stage/www
@@ -1219,8 +1139,6 @@ before_script:
1219
1139
  artifacts: false
1220
1140
  - job: 'www ๐Ÿ”จ docker | stage '
1221
1141
  artifacts: false
1222
- - job: 'www ๐Ÿงพ sbom | stage '
1223
- artifacts: true
1224
1142
  retry: *a1
1225
1143
  interruptible: true
1226
1144
  allow_failure: false
@@ -1241,8 +1159,6 @@ before_script:
1241
1159
  - gcloud run services delete pan-test-app-stage-www --project=asdf --region=asia-east1
1242
1160
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/www --quiet --delete-tags
1243
1161
  - 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
1244
- - echo 'Disabling component in Dependency Track'
1245
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
1246
1162
  - set -e
1247
1163
  environment:
1248
1164
  name: stage/www
@@ -1402,28 +1318,6 @@ before_script:
1402
1318
  - 'www ๐Ÿ”จ app | prod '
1403
1319
  retry: *a1
1404
1320
  interruptible: true
1405
- 'www ๐Ÿงพ sbom | prod ':
1406
- stage: build
1407
- image:
1408
- name: aquasec/trivy:0.58.2
1409
- entrypoint:
1410
- - ''
1411
- variables: {}
1412
- script:
1413
- - collapseable_section_start "injectvars" "Injecting variables"
1414
- - collapseable_section_end "injectvars"
1415
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
1416
- artifacts:
1417
- paths:
1418
- - __sbom.json
1419
- rules:
1420
- - when: never
1421
- if: $CI_PIPELINE_SOURCE == "trigger"
1422
- - if: $CI_COMMIT_TAG
1423
- needs: []
1424
- retry: *a1
1425
- interruptible: true
1426
- allow_failure: true
1427
1321
  'www ๐Ÿš€ Deploy | prod ':
1428
1322
  stage: deploy prod
1429
1323
  image: path/to/docker/gcloud:the-version
@@ -1503,8 +1397,6 @@ before_script:
1503
1397
  - 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
1504
1398
  - set -e
1505
1399
  - collapseable_section_end "cleanup"
1506
- - echo 'Uploading SBOM to Dependency Track'
1507
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
1508
1400
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1509
1401
  environment:
1510
1402
  name: prod/www
@@ -1523,8 +1415,6 @@ before_script:
1523
1415
  artifacts: false
1524
1416
  - job: 'www ๐Ÿ”จ docker | prod '
1525
1417
  artifacts: false
1526
- - job: 'www ๐Ÿงพ sbom | prod '
1527
- artifacts: true
1528
1418
  retry: *a1
1529
1419
  interruptible: true
1530
1420
  allow_failure: true
@@ -1545,8 +1435,6 @@ before_script:
1545
1435
  - gcloud run services delete pan-test-app-prod-www --project=asdf --region=asia-east1
1546
1436
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/www --quiet --delete-tags
1547
1437
  - 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
1548
- - echo 'Disabling component in Dependency Track'
1549
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
1550
1438
  - set -e
1551
1439
  environment:
1552
1440
  name: prod/www