@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
@@ -345,28 +345,6 @@ before_script:
345
345
  - 'www ๐Ÿ”จ app | dev '
346
346
  retry: *a1
347
347
  interruptible: true
348
- 'www ๐Ÿงพ sbom | dev ':
349
- stage: build
350
- image:
351
- name: aquasec/trivy:0.58.2
352
- entrypoint:
353
- - ''
354
- variables: {}
355
- script:
356
- - collapseable_section_start "injectvars" "Injecting variables"
357
- - collapseable_section_end "injectvars"
358
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
359
- artifacts:
360
- paths:
361
- - __sbom.json
362
- rules:
363
- - when: never
364
- if: $CI_PIPELINE_SOURCE == "trigger"
365
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
366
- needs: []
367
- retry: *a1
368
- interruptible: true
369
- allow_failure: true
370
348
  'www ๐Ÿš€ Deploy | dev ':
371
349
  stage: deploy dev
372
350
  image: path/to/docker/jobs-default:the-version
@@ -396,8 +374,6 @@ before_script:
396
374
  - collapseable_section_end "injectvars"
397
375
  - cd www
398
376
  - echo 'would deploy'
399
- - echo 'Uploading SBOM to Dependency Track'
400
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
401
377
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
402
378
  environment:
403
379
  name: dev/www
@@ -419,8 +395,6 @@ before_script:
419
395
  artifacts: false
420
396
  - job: 'www ๐Ÿงช test | dev '
421
397
  artifacts: false
422
- - job: 'www ๐Ÿงพ sbom | dev '
423
- artifacts: true
424
398
  - job: 'www ๐Ÿ›ก audit | dev '
425
399
  artifacts: false
426
400
  retry: *a1
@@ -681,28 +655,6 @@ before_script:
681
655
  - 'www ๐Ÿ”จ app | review '
682
656
  retry: *a1
683
657
  interruptible: true
684
- 'www ๐Ÿงพ sbom | review ':
685
- stage: build
686
- image:
687
- name: aquasec/trivy:0.58.2
688
- entrypoint:
689
- - ''
690
- variables: {}
691
- script:
692
- - collapseable_section_start "injectvars" "Injecting variables"
693
- - collapseable_section_end "injectvars"
694
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
695
- artifacts:
696
- paths:
697
- - __sbom.json
698
- rules:
699
- - when: never
700
- if: $CI_PIPELINE_SOURCE == "trigger"
701
- - if: $CI_MERGE_REQUEST_ID
702
- needs: []
703
- retry: *a1
704
- interruptible: true
705
- allow_failure: true
706
658
  'www ๐Ÿš€ Deploy | review ':
707
659
  stage: deploy review
708
660
  image: path/to/docker/jobs-default:the-version
@@ -732,8 +684,6 @@ before_script:
732
684
  - collapseable_section_end "injectvars"
733
685
  - cd www
734
686
  - ROOT_URL="$(my deploy command)"
735
- - echo 'Uploading SBOM to Dependency Track'
736
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
737
687
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
738
688
  environment:
739
689
  name: review/$CI_COMMIT_REF_NAME/www
@@ -757,8 +707,6 @@ before_script:
757
707
  artifacts: false
758
708
  - job: 'www ๐Ÿงช test | review '
759
709
  artifacts: false
760
- - job: 'www ๐Ÿงพ sbom | review '
761
- artifacts: true
762
710
  - job: 'www ๐Ÿ›ก audit | review '
763
711
  artifacts: false
764
712
  retry: *a1
@@ -777,8 +725,6 @@ before_script:
777
725
  - export DEPLOY_API_KEY="$CL_review_www_DEPLOY_API_KEY"
778
726
  - collapseable_section_end "injectvars"
779
727
  - echo 'would stop'
780
- - echo 'Disabling component in Dependency Track'
781
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
782
728
  environment:
783
729
  name: review/$CI_COMMIT_REF_NAME/www
784
730
  action: stop
@@ -929,28 +875,6 @@ before_script:
929
875
  - 'www ๐Ÿ”จ app | stage '
930
876
  retry: *a1
931
877
  interruptible: true
932
- 'www ๐Ÿงพ sbom | stage ':
933
- stage: build
934
- image:
935
- name: aquasec/trivy:0.58.2
936
- entrypoint:
937
- - ''
938
- variables: {}
939
- script:
940
- - collapseable_section_start "injectvars" "Injecting variables"
941
- - collapseable_section_end "injectvars"
942
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
943
- artifacts:
944
- paths:
945
- - __sbom.json
946
- rules:
947
- - when: never
948
- if: $CI_PIPELINE_SOURCE == "trigger"
949
- - if: $CI_COMMIT_TAG
950
- needs: []
951
- retry: *a1
952
- interruptible: true
953
- allow_failure: true
954
878
  'www ๐Ÿš€ Deploy | stage ':
955
879
  stage: deploy stage
956
880
  image: path/to/docker/jobs-default:the-version
@@ -980,8 +904,6 @@ before_script:
980
904
  - collapseable_section_end "injectvars"
981
905
  - cd www
982
906
  - echo 'would deploy'
983
- - echo 'Uploading SBOM to Dependency Track'
984
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
985
907
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
986
908
  environment:
987
909
  name: stage/www
@@ -999,8 +921,6 @@ before_script:
999
921
  artifacts: false
1000
922
  - job: 'www ๐Ÿ”จ docker | stage '
1001
923
  artifacts: false
1002
- - job: 'www ๐Ÿงพ sbom | stage '
1003
- artifacts: true
1004
924
  retry: *a1
1005
925
  interruptible: true
1006
926
  allow_failure: false
@@ -1142,28 +1062,6 @@ before_script:
1142
1062
  - 'www ๐Ÿ”จ app | prod '
1143
1063
  retry: *a1
1144
1064
  interruptible: true
1145
- 'www ๐Ÿงพ sbom | prod ':
1146
- stage: build
1147
- image:
1148
- name: aquasec/trivy:0.58.2
1149
- entrypoint:
1150
- - ''
1151
- variables: {}
1152
- script:
1153
- - collapseable_section_start "injectvars" "Injecting variables"
1154
- - collapseable_section_end "injectvars"
1155
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
1156
- artifacts:
1157
- paths:
1158
- - __sbom.json
1159
- rules:
1160
- - when: never
1161
- if: $CI_PIPELINE_SOURCE == "trigger"
1162
- - if: $CI_COMMIT_TAG
1163
- needs: []
1164
- retry: *a1
1165
- interruptible: true
1166
- allow_failure: true
1167
1065
  'www ๐Ÿš€ Deploy | prod ':
1168
1066
  stage: deploy prod
1169
1067
  image: path/to/docker/jobs-default:the-version
@@ -1193,8 +1091,6 @@ before_script:
1193
1091
  - collapseable_section_end "injectvars"
1194
1092
  - cd www
1195
1093
  - echo 'would deploy'
1196
- - echo 'Uploading SBOM to Dependency Track'
1197
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
1198
1094
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1199
1095
  environment:
1200
1096
  name: prod/www
@@ -1212,8 +1108,6 @@ before_script:
1212
1108
  artifacts: false
1213
1109
  - job: 'www ๐Ÿ”จ docker | prod '
1214
1110
  artifacts: false
1215
- - job: 'www ๐Ÿงพ sbom | prod '
1216
- artifacts: true
1217
1111
  retry: *a1
1218
1112
  interruptible: true
1219
1113
  allow_failure: true
@@ -362,28 +362,6 @@ before_script:
362
362
  - 'www ๐Ÿ”จ app | dev '
363
363
  retry: *a1
364
364
  interruptible: true
365
- 'www ๐Ÿงพ sbom | dev ':
366
- stage: build
367
- image:
368
- name: aquasec/trivy:0.58.2
369
- entrypoint:
370
- - ''
371
- variables: {}
372
- script:
373
- - collapseable_section_start "injectvars" "Injecting variables"
374
- - collapseable_section_end "injectvars"
375
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
376
- artifacts:
377
- paths:
378
- - __sbom.json
379
- rules:
380
- - when: never
381
- if: $CI_PIPELINE_SOURCE == "trigger"
382
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
383
- needs: []
384
- retry: *a1
385
- interruptible: true
386
- allow_failure: true
387
365
  'www ๐Ÿš€ Deploy | dev ':
388
366
  stage: deploy dev
389
367
  image: path/to/docker/gcloud:the-version
@@ -463,8 +441,6 @@ before_script:
463
441
  - 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
464
442
  - set -e
465
443
  - collapseable_section_end "cleanup"
466
- - echo 'Uploading SBOM to Dependency Track'
467
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
468
444
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
469
445
  environment:
470
446
  name: dev/www
@@ -488,8 +464,6 @@ before_script:
488
464
  artifacts: false
489
465
  - job: 'www ๐Ÿงช test | dev '
490
466
  artifacts: false
491
- - job: 'www ๐Ÿงพ sbom | dev '
492
- artifacts: true
493
467
  - job: 'www ๐Ÿ›ก audit | dev '
494
468
  artifacts: false
495
469
  retry: *a1
@@ -512,8 +486,6 @@ before_script:
512
486
  - gcloud run services delete pan-test-app-dev-www --project=asdf --region=asia-east1
513
487
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/www --quiet --delete-tags
514
488
  - 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
515
- - echo 'Disabling component in Dependency Track'
516
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
517
489
  - set -e
518
490
  environment:
519
491
  name: dev/www
@@ -799,28 +771,6 @@ before_script:
799
771
  - 'www ๐Ÿ”จ app | review '
800
772
  retry: *a1
801
773
  interruptible: true
802
- 'www ๐Ÿงพ sbom | review ':
803
- stage: build
804
- image:
805
- name: aquasec/trivy:0.58.2
806
- entrypoint:
807
- - ''
808
- variables: {}
809
- script:
810
- - collapseable_section_start "injectvars" "Injecting variables"
811
- - collapseable_section_end "injectvars"
812
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
813
- artifacts:
814
- paths:
815
- - __sbom.json
816
- rules:
817
- - when: never
818
- if: $CI_PIPELINE_SOURCE == "trigger"
819
- - if: $CI_MERGE_REQUEST_ID
820
- needs: []
821
- retry: *a1
822
- interruptible: true
823
- allow_failure: true
824
774
  'www ๐Ÿš€ Deploy | review ':
825
775
  stage: deploy review
826
776
  image: path/to/docker/gcloud:the-version
@@ -903,8 +853,6 @@ before_script:
903
853
  - set -e
904
854
  - set -e
905
855
  - collapseable_section_end "cleanup"
906
- - echo 'Uploading SBOM to Dependency Track'
907
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
908
856
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
909
857
  environment:
910
858
  name: review/$CI_COMMIT_REF_NAME/www
@@ -928,8 +876,6 @@ before_script:
928
876
  artifacts: false
929
877
  - job: 'www ๐Ÿงช test | review '
930
878
  artifacts: false
931
- - job: 'www ๐Ÿงพ sbom | review '
932
- artifacts: true
933
879
  - job: 'www ๐Ÿ›ก audit | review '
934
880
  artifacts: false
935
881
  retry: *a1
@@ -955,8 +901,6 @@ before_script:
955
901
  - set +e
956
902
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/www --quiet --delete-tags
957
903
  - set -e
958
- - echo 'Disabling component in Dependency Track'
959
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
960
904
  - set -e
961
905
  environment:
962
906
  name: review/$CI_COMMIT_REF_NAME/www
@@ -1125,28 +1069,6 @@ before_script:
1125
1069
  - 'www ๐Ÿ”จ app | stage '
1126
1070
  retry: *a1
1127
1071
  interruptible: true
1128
- 'www ๐Ÿงพ sbom | stage ':
1129
- stage: build
1130
- image:
1131
- name: aquasec/trivy:0.58.2
1132
- entrypoint:
1133
- - ''
1134
- variables: {}
1135
- script:
1136
- - collapseable_section_start "injectvars" "Injecting variables"
1137
- - collapseable_section_end "injectvars"
1138
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
1139
- artifacts:
1140
- paths:
1141
- - __sbom.json
1142
- rules:
1143
- - when: never
1144
- if: $CI_PIPELINE_SOURCE == "trigger"
1145
- - if: $CI_COMMIT_TAG
1146
- needs: []
1147
- retry: *a1
1148
- interruptible: true
1149
- allow_failure: true
1150
1072
  'www ๐Ÿš€ Deploy | stage ':
1151
1073
  stage: deploy stage
1152
1074
  image: path/to/docker/gcloud:the-version
@@ -1226,8 +1148,6 @@ before_script:
1226
1148
  - 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
1227
1149
  - set -e
1228
1150
  - collapseable_section_end "cleanup"
1229
- - echo 'Uploading SBOM to Dependency Track'
1230
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
1231
1151
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1232
1152
  environment:
1233
1153
  name: stage/www
@@ -1246,8 +1166,6 @@ before_script:
1246
1166
  artifacts: false
1247
1167
  - job: 'www ๐Ÿ”จ docker | stage '
1248
1168
  artifacts: false
1249
- - job: 'www ๐Ÿงพ sbom | stage '
1250
- artifacts: true
1251
1169
  retry: *a1
1252
1170
  interruptible: true
1253
1171
  allow_failure: false
@@ -1268,8 +1186,6 @@ before_script:
1268
1186
  - gcloud run services delete pan-test-app-stage-www --project=asdf --region=asia-east1
1269
1187
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/www --quiet --delete-tags
1270
1188
  - 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
1271
- - echo 'Disabling component in Dependency Track'
1272
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
1273
1189
  - set -e
1274
1190
  environment:
1275
1191
  name: stage/www
@@ -1438,28 +1354,6 @@ before_script:
1438
1354
  - 'www ๐Ÿ”จ app | prod '
1439
1355
  retry: *a1
1440
1356
  interruptible: true
1441
- 'www ๐Ÿงพ sbom | prod ':
1442
- stage: build
1443
- image:
1444
- name: aquasec/trivy:0.58.2
1445
- entrypoint:
1446
- - ''
1447
- variables: {}
1448
- script:
1449
- - collapseable_section_start "injectvars" "Injecting variables"
1450
- - collapseable_section_end "injectvars"
1451
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" www
1452
- artifacts:
1453
- paths:
1454
- - __sbom.json
1455
- rules:
1456
- - when: never
1457
- if: $CI_PIPELINE_SOURCE == "trigger"
1458
- - if: $CI_COMMIT_TAG
1459
- needs: []
1460
- retry: *a1
1461
- interruptible: true
1462
- allow_failure: true
1463
1357
  'www ๐Ÿš€ Deploy | prod ':
1464
1358
  stage: deploy prod
1465
1359
  image: path/to/docker/gcloud:the-version
@@ -1539,8 +1433,6 @@ before_script:
1539
1433
  - 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
1540
1434
  - set -e
1541
1435
  - collapseable_section_end "cleanup"
1542
- - echo 'Uploading SBOM to Dependency Track'
1543
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/www" "$ROOT_URL" "__sbom.json" vex.json || true
1544
1436
  - echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
1545
1437
  environment:
1546
1438
  name: prod/www
@@ -1559,8 +1451,6 @@ before_script:
1559
1451
  artifacts: false
1560
1452
  - job: 'www ๐Ÿ”จ docker | prod '
1561
1453
  artifacts: false
1562
- - job: 'www ๐Ÿงพ sbom | prod '
1563
- artifacts: true
1564
1454
  retry: *a1
1565
1455
  interruptible: true
1566
1456
  allow_failure: true
@@ -1581,8 +1471,6 @@ before_script:
1581
1471
  - gcloud run services delete pan-test-app-prod-www --project=asdf --region=asia-east1
1582
1472
  - gcloud artifacts docker images delete asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/www --quiet --delete-tags
1583
1473
  - 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
1584
- - echo 'Disabling component in Dependency Track'
1585
- - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/www" "$CI_ENVIRONMENT_URL" || true
1586
1474
  - set -e
1587
1475
  environment:
1588
1476
  name: prod/www
@@ -299,28 +299,6 @@ before_script:
299
299
  needs: []
300
300
  retry: *a1
301
301
  interruptible: true
302
- 'api ๐Ÿงพ sbom | dev ':
303
- stage: build
304
- image:
305
- name: aquasec/trivy:0.58.2
306
- entrypoint:
307
- - ''
308
- variables: {}
309
- script:
310
- - collapseable_section_start "injectvars" "Injecting variables"
311
- - collapseable_section_end "injectvars"
312
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
313
- artifacts:
314
- paths:
315
- - __sbom.json
316
- rules:
317
- - when: never
318
- if: $CI_PIPELINE_SOURCE == "trigger"
319
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
320
- needs: []
321
- retry: *a1
322
- interruptible: true
323
- allow_failure: true
324
302
  'api ๐Ÿ›ก audit | asdf ':
325
303
  stage: test
326
304
  image: path/to/docker/jobs-default:the-version
@@ -500,28 +478,6 @@ before_script:
500
478
  needs: []
501
479
  retry: *a1
502
480
  interruptible: true
503
- 'api ๐Ÿงพ sbom | asdf ':
504
- stage: build
505
- image:
506
- name: aquasec/trivy:0.58.2
507
- entrypoint:
508
- - ''
509
- variables: {}
510
- script:
511
- - collapseable_section_start "injectvars" "Injecting variables"
512
- - collapseable_section_end "injectvars"
513
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
514
- artifacts:
515
- paths:
516
- - __sbom.json
517
- rules:
518
- - when: never
519
- if: $CI_PIPELINE_SOURCE == "trigger"
520
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
521
- needs: []
522
- retry: *a1
523
- interruptible: true
524
- allow_failure: true
525
481
  'api ๐Ÿ›ก audit | bla ':
526
482
  stage: test
527
483
  image: path/to/docker/jobs-default:the-version
@@ -701,28 +657,6 @@ before_script:
701
657
  needs: []
702
658
  retry: *a1
703
659
  interruptible: true
704
- 'api ๐Ÿงพ sbom | bla ':
705
- stage: build
706
- image:
707
- name: aquasec/trivy:0.58.2
708
- entrypoint:
709
- - ''
710
- variables: {}
711
- script:
712
- - collapseable_section_start "injectvars" "Injecting variables"
713
- - collapseable_section_end "injectvars"
714
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
715
- artifacts:
716
- paths:
717
- - __sbom.json
718
- rules:
719
- - when: never
720
- if: $CI_PIPELINE_SOURCE == "trigger"
721
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
722
- needs: []
723
- retry: *a1
724
- interruptible: true
725
- allow_failure: true
726
660
  'api ๐Ÿ›ก audit | review ':
727
661
  stage: test
728
662
  image: path/to/docker/jobs-default:the-version
@@ -914,28 +848,6 @@ before_script:
914
848
  needs: []
915
849
  retry: *a1
916
850
  interruptible: true
917
- 'api ๐Ÿงพ sbom | review ':
918
- stage: build
919
- image:
920
- name: aquasec/trivy:0.58.2
921
- entrypoint:
922
- - ''
923
- variables: {}
924
- script:
925
- - collapseable_section_start "injectvars" "Injecting variables"
926
- - collapseable_section_end "injectvars"
927
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
928
- artifacts:
929
- paths:
930
- - __sbom.json
931
- rules:
932
- - when: never
933
- if: $CI_PIPELINE_SOURCE == "trigger"
934
- - if: $CI_MERGE_REQUEST_ID
935
- needs: []
936
- retry: *a1
937
- interruptible: true
938
- allow_failure: true
939
851
  'api ๐Ÿ”จ app | stage ':
940
852
  stage: build
941
853
  image: path/to/docker/jobs-default:the-version
@@ -1012,28 +924,6 @@ before_script:
1012
924
  needs: []
1013
925
  retry: *a1
1014
926
  interruptible: true
1015
- 'api ๐Ÿงพ sbom | stage ':
1016
- stage: build
1017
- image:
1018
- name: aquasec/trivy:0.58.2
1019
- entrypoint:
1020
- - ''
1021
- variables: {}
1022
- script:
1023
- - collapseable_section_start "injectvars" "Injecting variables"
1024
- - collapseable_section_end "injectvars"
1025
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
1026
- artifacts:
1027
- paths:
1028
- - __sbom.json
1029
- rules:
1030
- - when: never
1031
- if: $CI_PIPELINE_SOURCE == "trigger"
1032
- - if: $CI_COMMIT_TAG
1033
- needs: []
1034
- retry: *a1
1035
- interruptible: true
1036
- allow_failure: true
1037
927
  'api ๐Ÿ”จ app | prod ':
1038
928
  stage: build
1039
929
  image: path/to/docker/jobs-default:the-version
@@ -1110,28 +1000,6 @@ before_script:
1110
1000
  needs: []
1111
1001
  retry: *a1
1112
1002
  interruptible: true
1113
- 'api ๐Ÿงพ sbom | prod ':
1114
- stage: build
1115
- image:
1116
- name: aquasec/trivy:0.58.2
1117
- entrypoint:
1118
- - ''
1119
- variables: {}
1120
- script:
1121
- - collapseable_section_start "injectvars" "Injecting variables"
1122
- - collapseable_section_end "injectvars"
1123
- - trivy fs --quiet --format cyclonedx --output "__sbom.json" api
1124
- artifacts:
1125
- paths:
1126
- - __sbom.json
1127
- rules:
1128
- - when: never
1129
- if: $CI_PIPELINE_SOURCE == "trigger"
1130
- - if: $CI_COMMIT_TAG
1131
- needs: []
1132
- retry: *a1
1133
- interruptible: true
1134
- allow_failure: true
1135
1003
  create release:
1136
1004
  stage: release
1137
1005
  image: path/to/docker/semantic-release:the-version