@catladder/pipeline 3.40.1 โ 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/base/index.js +2 -4
- package/dist/build/types.d.ts +0 -10
- package/dist/constants.js +1 -1
- package/dist/deploy/base/deploy.js +1 -6
- package/dist/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +2 -3
- package/dist/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +2 -3
- package/dist/deploy/custom/deployJob.js +2 -3
- package/dist/deploy/kubernetes/deployJob.js +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/automatic-releases.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-n8n.test.ts.snap +940 -0
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +0 -336
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +0 -224
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +0 -112
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-build-job.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-deploy.test.ts.snap +0 -106
- package/examples/__snapshots__/custom-docker-file.test.ts.snap +0 -112
- package/examples/__snapshots__/custom-envs.test.ts.snap +0 -132
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +0 -112
- package/examples/__snapshots__/git-submodule.test.ts.snap +0 -112
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +0 -112
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +0 -112
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +0 -224
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +0 -112
- package/examples/__snapshots__/local-dot-env.test.ts.snap +0 -112
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +0 -112
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +0 -88
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +0 -88
- package/examples/__snapshots__/multiline-var.test.ts.snap +0 -336
- package/examples/__snapshots__/native-app.test.ts.snap +0 -216
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +0 -112
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +0 -112
- package/examples/__snapshots__/override-secrets.test.ts.snap +0 -112
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +0 -112
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +0 -112
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +0 -336
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +0 -208
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +0 -224
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +0 -224
- package/examples/{custom-sbom-java.test.ts โ cloud-run-n8n.test.ts} +2 -2
- package/examples/cloud-run-n8n.ts +62 -0
- package/package.json +1 -1
- package/src/build/base/index.ts +0 -4
- package/src/build/types.ts +0 -13
- package/src/deploy/base/deploy.ts +0 -5
- package/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.ts +0 -2
- package/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.ts +0 -2
- package/src/deploy/custom/deployJob.ts +2 -9
- package/src/deploy/kubernetes/deployJob.ts +3 -10
- package/dist/build/sbom.d.ts +0 -5
- package/dist/build/sbom.js +0 -35
- package/dist/deploy/sbom.d.ts +0 -4
- package/dist/deploy/sbom.js +0 -21
- package/examples/custom-sbom-java.ts +0 -38
- package/src/build/sbom.ts +0 -53
- package/src/deploy/sbom.ts +0 -34
|
@@ -355,28 +355,6 @@ before_script:
|
|
|
355
355
|
- 'api ๐จ app | dev '
|
|
356
356
|
retry: *a1
|
|
357
357
|
interruptible: true
|
|
358
|
-
'api ๐งพ sbom | dev ':
|
|
359
|
-
stage: build
|
|
360
|
-
image:
|
|
361
|
-
name: aquasec/trivy:0.58.2
|
|
362
|
-
entrypoint:
|
|
363
|
-
- ''
|
|
364
|
-
variables: {}
|
|
365
|
-
script:
|
|
366
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
367
|
-
- collapseable_section_end "injectvars"
|
|
368
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
369
|
-
artifacts:
|
|
370
|
-
paths:
|
|
371
|
-
- __sbom.json
|
|
372
|
-
rules:
|
|
373
|
-
- when: never
|
|
374
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
375
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
376
|
-
needs: []
|
|
377
|
-
retry: *a1
|
|
378
|
-
interruptible: true
|
|
379
|
-
allow_failure: true
|
|
380
358
|
'api ๐ Deploy | dev ':
|
|
381
359
|
stage: deploy dev
|
|
382
360
|
image: path/to/docker/gcloud:the-version
|
|
@@ -469,8 +447,6 @@ before_script:
|
|
|
469
447
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
470
448
|
- set -e
|
|
471
449
|
- collapseable_section_end "cleanup"
|
|
472
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
473
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
474
450
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
475
451
|
environment:
|
|
476
452
|
name: dev/api
|
|
@@ -494,8 +470,6 @@ before_script:
|
|
|
494
470
|
artifacts: false
|
|
495
471
|
- job: 'api ๐งช test | dev '
|
|
496
472
|
artifacts: false
|
|
497
|
-
- job: 'api ๐งพ sbom | dev '
|
|
498
|
-
artifacts: true
|
|
499
473
|
- job: 'api ๐ก audit | dev '
|
|
500
474
|
artifacts: false
|
|
501
475
|
retry: *a1
|
|
@@ -520,8 +494,6 @@ before_script:
|
|
|
520
494
|
- gcloud run jobs delete pan-test-app-dev-api-myjob --project=google-project-id --region=europe-west6
|
|
521
495
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api --quiet --delete-tags
|
|
522
496
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
523
|
-
- echo 'Disabling component in Dependency Track'
|
|
524
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
525
497
|
- set -e
|
|
526
498
|
environment:
|
|
527
499
|
name: dev/api
|
|
@@ -800,28 +772,6 @@ before_script:
|
|
|
800
772
|
- 'api ๐จ app | review '
|
|
801
773
|
retry: *a1
|
|
802
774
|
interruptible: true
|
|
803
|
-
'api ๐งพ sbom | review ':
|
|
804
|
-
stage: build
|
|
805
|
-
image:
|
|
806
|
-
name: aquasec/trivy:0.58.2
|
|
807
|
-
entrypoint:
|
|
808
|
-
- ''
|
|
809
|
-
variables: {}
|
|
810
|
-
script:
|
|
811
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
812
|
-
- collapseable_section_end "injectvars"
|
|
813
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
814
|
-
artifacts:
|
|
815
|
-
paths:
|
|
816
|
-
- __sbom.json
|
|
817
|
-
rules:
|
|
818
|
-
- when: never
|
|
819
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
820
|
-
- if: $CI_MERGE_REQUEST_ID
|
|
821
|
-
needs: []
|
|
822
|
-
retry: *a1
|
|
823
|
-
interruptible: true
|
|
824
|
-
allow_failure: true
|
|
825
775
|
'api ๐ Deploy | review ':
|
|
826
776
|
stage: deploy review
|
|
827
777
|
image: path/to/docker/gcloud:the-version
|
|
@@ -917,8 +867,6 @@ before_script:
|
|
|
917
867
|
- set -e
|
|
918
868
|
- set -e
|
|
919
869
|
- collapseable_section_end "cleanup"
|
|
920
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
921
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
922
870
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
923
871
|
environment:
|
|
924
872
|
name: review/$CI_COMMIT_REF_NAME/api
|
|
@@ -942,8 +890,6 @@ before_script:
|
|
|
942
890
|
artifacts: false
|
|
943
891
|
- job: 'api ๐งช test | review '
|
|
944
892
|
artifacts: false
|
|
945
|
-
- job: 'api ๐งพ sbom | review '
|
|
946
|
-
artifacts: true
|
|
947
893
|
- job: 'api ๐ก audit | review '
|
|
948
894
|
artifacts: false
|
|
949
895
|
retry: *a1
|
|
@@ -971,8 +917,6 @@ before_script:
|
|
|
971
917
|
- set +e
|
|
972
918
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/api --quiet --delete-tags
|
|
973
919
|
- set -e
|
|
974
|
-
- echo 'Disabling component in Dependency Track'
|
|
975
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
976
920
|
- set -e
|
|
977
921
|
environment:
|
|
978
922
|
name: review/$CI_COMMIT_REF_NAME/api
|
|
@@ -1134,28 +1078,6 @@ before_script:
|
|
|
1134
1078
|
- 'api ๐จ app | stage '
|
|
1135
1079
|
retry: *a1
|
|
1136
1080
|
interruptible: true
|
|
1137
|
-
'api ๐งพ sbom | stage ':
|
|
1138
|
-
stage: build
|
|
1139
|
-
image:
|
|
1140
|
-
name: aquasec/trivy:0.58.2
|
|
1141
|
-
entrypoint:
|
|
1142
|
-
- ''
|
|
1143
|
-
variables: {}
|
|
1144
|
-
script:
|
|
1145
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
1146
|
-
- collapseable_section_end "injectvars"
|
|
1147
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
1148
|
-
artifacts:
|
|
1149
|
-
paths:
|
|
1150
|
-
- __sbom.json
|
|
1151
|
-
rules:
|
|
1152
|
-
- when: never
|
|
1153
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
1154
|
-
- if: $CI_COMMIT_TAG
|
|
1155
|
-
needs: []
|
|
1156
|
-
retry: *a1
|
|
1157
|
-
interruptible: true
|
|
1158
|
-
allow_failure: true
|
|
1159
1081
|
'api ๐ Deploy | stage ':
|
|
1160
1082
|
stage: deploy stage
|
|
1161
1083
|
image: path/to/docker/gcloud:the-version
|
|
@@ -1248,8 +1170,6 @@ before_script:
|
|
|
1248
1170
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1249
1171
|
- set -e
|
|
1250
1172
|
- collapseable_section_end "cleanup"
|
|
1251
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
1252
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
1253
1173
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
1254
1174
|
environment:
|
|
1255
1175
|
name: stage/api
|
|
@@ -1268,8 +1188,6 @@ before_script:
|
|
|
1268
1188
|
artifacts: false
|
|
1269
1189
|
- job: 'api ๐จ docker | stage '
|
|
1270
1190
|
artifacts: false
|
|
1271
|
-
- job: 'api ๐งพ sbom | stage '
|
|
1272
|
-
artifacts: true
|
|
1273
1191
|
retry: *a1
|
|
1274
1192
|
interruptible: true
|
|
1275
1193
|
allow_failure: false
|
|
@@ -1292,8 +1210,6 @@ before_script:
|
|
|
1292
1210
|
- gcloud run jobs delete pan-test-app-stage-api-myjob --project=google-project-id --region=europe-west6
|
|
1293
1211
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api --quiet --delete-tags
|
|
1294
1212
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1295
|
-
- echo 'Disabling component in Dependency Track'
|
|
1296
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1297
1213
|
- set -e
|
|
1298
1214
|
environment:
|
|
1299
1215
|
name: stage/api
|
|
@@ -1455,28 +1371,6 @@ before_script:
|
|
|
1455
1371
|
- 'api ๐จ app | prod '
|
|
1456
1372
|
retry: *a1
|
|
1457
1373
|
interruptible: true
|
|
1458
|
-
'api ๐งพ sbom | prod ':
|
|
1459
|
-
stage: build
|
|
1460
|
-
image:
|
|
1461
|
-
name: aquasec/trivy:0.58.2
|
|
1462
|
-
entrypoint:
|
|
1463
|
-
- ''
|
|
1464
|
-
variables: {}
|
|
1465
|
-
script:
|
|
1466
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
1467
|
-
- collapseable_section_end "injectvars"
|
|
1468
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
1469
|
-
artifacts:
|
|
1470
|
-
paths:
|
|
1471
|
-
- __sbom.json
|
|
1472
|
-
rules:
|
|
1473
|
-
- when: never
|
|
1474
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
1475
|
-
- if: $CI_COMMIT_TAG
|
|
1476
|
-
needs: []
|
|
1477
|
-
retry: *a1
|
|
1478
|
-
interruptible: true
|
|
1479
|
-
allow_failure: true
|
|
1480
1374
|
'api ๐ Deploy | prod ':
|
|
1481
1375
|
stage: deploy prod
|
|
1482
1376
|
image: path/to/docker/gcloud:the-version
|
|
@@ -1569,8 +1463,6 @@ before_script:
|
|
|
1569
1463
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1570
1464
|
- set -e
|
|
1571
1465
|
- collapseable_section_end "cleanup"
|
|
1572
|
-
- echo 'Uploading SBOM to Dependency Track'
|
|
1573
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "$ROOT_URL" "__sbom.json" vex.json || true
|
|
1574
1466
|
- echo "CL_GITLAB_ENVIRONMENT_URL=$ROOT_URL" >> gitlab_environment.env
|
|
1575
1467
|
environment:
|
|
1576
1468
|
name: prod/api
|
|
@@ -1589,8 +1481,6 @@ before_script:
|
|
|
1589
1481
|
artifacts: false
|
|
1590
1482
|
- job: 'api ๐จ docker | prod '
|
|
1591
1483
|
artifacts: false
|
|
1592
|
-
- job: 'api ๐งพ sbom | prod '
|
|
1593
|
-
artifacts: true
|
|
1594
1484
|
retry: *a1
|
|
1595
1485
|
interruptible: true
|
|
1596
1486
|
allow_failure: true
|
|
@@ -1613,8 +1503,6 @@ before_script:
|
|
|
1613
1503
|
- gcloud run jobs delete pan-test-app-prod-api-myjob --project=google-project-id --region=europe-west6
|
|
1614
1504
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api --quiet --delete-tags
|
|
1615
1505
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1616
|
-
- echo 'Disabling component in Dependency Track'
|
|
1617
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1618
1506
|
- set -e
|
|
1619
1507
|
environment:
|
|
1620
1508
|
name: prod/api
|
|
@@ -353,28 +353,6 @@ before_script:
|
|
|
353
353
|
- 'api ๐จ app | dev '
|
|
354
354
|
retry: *a1
|
|
355
355
|
interruptible: true
|
|
356
|
-
'api ๐งพ sbom | dev ':
|
|
357
|
-
stage: build
|
|
358
|
-
image:
|
|
359
|
-
name: aquasec/trivy:0.58.2
|
|
360
|
-
entrypoint:
|
|
361
|
-
- ''
|
|
362
|
-
variables: {}
|
|
363
|
-
script:
|
|
364
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
365
|
-
- collapseable_section_end "injectvars"
|
|
366
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
367
|
-
artifacts:
|
|
368
|
-
paths:
|
|
369
|
-
- __sbom.json
|
|
370
|
-
rules:
|
|
371
|
-
- when: never
|
|
372
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
373
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
374
|
-
needs: []
|
|
375
|
-
retry: *a1
|
|
376
|
-
interruptible: true
|
|
377
|
-
allow_failure: true
|
|
378
356
|
'api ๐ Deploy | dev ':
|
|
379
357
|
stage: deploy dev
|
|
380
358
|
image: path/to/docker/gcloud:the-version
|
|
@@ -454,8 +432,6 @@ before_script:
|
|
|
454
432
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
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/api" "$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/api
|
|
@@ -479,8 +455,6 @@ before_script:
|
|
|
479
455
|
artifacts: false
|
|
480
456
|
- job: 'api ๐งช test | dev '
|
|
481
457
|
artifacts: false
|
|
482
|
-
- job: 'api ๐งพ sbom | dev '
|
|
483
|
-
artifacts: true
|
|
484
458
|
- job: 'api ๐ก 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-api --project=google-project-id --region=europe-west6
|
|
504
478
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api --quiet --delete-tags
|
|
505
479
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
506
|
-
- echo 'Disabling component in Dependency Track'
|
|
507
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
508
480
|
- set -e
|
|
509
481
|
environment:
|
|
510
482
|
name: dev/api
|
|
@@ -781,28 +753,6 @@ before_script:
|
|
|
781
753
|
- 'api ๐จ app | review '
|
|
782
754
|
retry: *a1
|
|
783
755
|
interruptible: true
|
|
784
|
-
'api ๐งพ 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" api
|
|
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
|
'api ๐ 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/api" "$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/api
|
|
@@ -910,8 +858,6 @@ before_script:
|
|
|
910
858
|
artifacts: false
|
|
911
859
|
- job: 'api ๐งช test | review '
|
|
912
860
|
artifacts: false
|
|
913
|
-
- job: 'api ๐งพ sbom | review '
|
|
914
|
-
artifacts: true
|
|
915
861
|
- job: 'api ๐ก 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 europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/api --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/api" "$CI_ENVIRONMENT_URL" || true
|
|
942
886
|
- set -e
|
|
943
887
|
environment:
|
|
944
888
|
name: review/$CI_COMMIT_REF_NAME/api
|
|
@@ -1098,28 +1042,6 @@ before_script:
|
|
|
1098
1042
|
- 'api ๐จ app | stage '
|
|
1099
1043
|
retry: *a1
|
|
1100
1044
|
interruptible: true
|
|
1101
|
-
'api ๐งพ 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" api
|
|
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
|
'api ๐ 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 europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
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/api" "$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/api
|
|
@@ -1219,8 +1139,6 @@ before_script:
|
|
|
1219
1139
|
artifacts: false
|
|
1220
1140
|
- job: 'api ๐จ docker | stage '
|
|
1221
1141
|
artifacts: false
|
|
1222
|
-
- job: 'api ๐งพ 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-api --project=google-project-id --region=europe-west6
|
|
1242
1160
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api --quiet --delete-tags
|
|
1243
1161
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1244
|
-
- echo 'Disabling component in Dependency Track'
|
|
1245
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1246
1162
|
- set -e
|
|
1247
1163
|
environment:
|
|
1248
1164
|
name: stage/api
|
|
@@ -1402,28 +1318,6 @@ before_script:
|
|
|
1402
1318
|
- 'api ๐จ app | prod '
|
|
1403
1319
|
retry: *a1
|
|
1404
1320
|
interruptible: true
|
|
1405
|
-
'api ๐งพ 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" api
|
|
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
|
'api ๐ 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 europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
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/api" "$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/api
|
|
@@ -1523,8 +1415,6 @@ before_script:
|
|
|
1523
1415
|
artifacts: false
|
|
1524
1416
|
- job: 'api ๐จ docker | prod '
|
|
1525
1417
|
artifacts: false
|
|
1526
|
-
- job: 'api ๐งพ 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-api --project=google-project-id --region=europe-west6
|
|
1546
1436
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api --quiet --delete-tags
|
|
1547
1437
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1548
|
-
- echo 'Disabling component in Dependency Track'
|
|
1549
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1550
1438
|
- set -e
|
|
1551
1439
|
environment:
|
|
1552
1440
|
name: prod/api
|
|
@@ -353,28 +353,6 @@ before_script:
|
|
|
353
353
|
- 'api ๐จ app | dev '
|
|
354
354
|
retry: *a1
|
|
355
355
|
interruptible: true
|
|
356
|
-
'api ๐งพ sbom | dev ':
|
|
357
|
-
stage: build
|
|
358
|
-
image:
|
|
359
|
-
name: aquasec/trivy:0.58.2
|
|
360
|
-
entrypoint:
|
|
361
|
-
- ''
|
|
362
|
-
variables: {}
|
|
363
|
-
script:
|
|
364
|
-
- collapseable_section_start "injectvars" "Injecting variables"
|
|
365
|
-
- collapseable_section_end "injectvars"
|
|
366
|
-
- trivy fs --quiet --format cyclonedx --output "__sbom.json" api
|
|
367
|
-
artifacts:
|
|
368
|
-
paths:
|
|
369
|
-
- __sbom.json
|
|
370
|
-
rules:
|
|
371
|
-
- when: never
|
|
372
|
-
if: $CI_PIPELINE_SOURCE == "trigger"
|
|
373
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
374
|
-
needs: []
|
|
375
|
-
retry: *a1
|
|
376
|
-
interruptible: true
|
|
377
|
-
allow_failure: true
|
|
378
356
|
'api ๐ Deploy | dev ':
|
|
379
357
|
stage: deploy dev
|
|
380
358
|
image: path/to/docker/gcloud:the-version
|
|
@@ -454,8 +432,6 @@ before_script:
|
|
|
454
432
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
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/api" "$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/api
|
|
@@ -479,8 +455,6 @@ before_script:
|
|
|
479
455
|
artifacts: false
|
|
480
456
|
- job: 'api ๐งช test | dev '
|
|
481
457
|
artifacts: false
|
|
482
|
-
- job: 'api ๐งพ sbom | dev '
|
|
483
|
-
artifacts: true
|
|
484
458
|
- job: 'api ๐ก 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-api --project=google-project-id --region=europe-west6
|
|
504
478
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/dev/api --quiet --delete-tags
|
|
505
479
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
506
|
-
- echo 'Disabling component in Dependency Track'
|
|
507
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
508
480
|
- set -e
|
|
509
481
|
environment:
|
|
510
482
|
name: dev/api
|
|
@@ -781,28 +753,6 @@ before_script:
|
|
|
781
753
|
- 'api ๐จ app | review '
|
|
782
754
|
retry: *a1
|
|
783
755
|
interruptible: true
|
|
784
|
-
'api ๐งพ 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" api
|
|
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
|
'api ๐ 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/api" "$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/api
|
|
@@ -910,8 +858,6 @@ before_script:
|
|
|
910
858
|
artifacts: false
|
|
911
859
|
- job: 'api ๐งช test | review '
|
|
912
860
|
artifacts: false
|
|
913
|
-
- job: 'api ๐งพ sbom | review '
|
|
914
|
-
artifacts: true
|
|
915
861
|
- job: 'api ๐ก 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 europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/review/api --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/api" "$CI_ENVIRONMENT_URL" || true
|
|
942
886
|
- set -e
|
|
943
887
|
environment:
|
|
944
888
|
name: review/$CI_COMMIT_REF_NAME/api
|
|
@@ -1098,28 +1042,6 @@ before_script:
|
|
|
1098
1042
|
- 'api ๐จ app | stage '
|
|
1099
1043
|
retry: *a1
|
|
1100
1044
|
interruptible: true
|
|
1101
|
-
'api ๐งพ 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" api
|
|
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
|
'api ๐ 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 europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
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/api" "$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/api
|
|
@@ -1219,8 +1139,6 @@ before_script:
|
|
|
1219
1139
|
artifacts: false
|
|
1220
1140
|
- job: 'api ๐จ docker | stage '
|
|
1221
1141
|
artifacts: false
|
|
1222
|
-
- job: 'api ๐งพ 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-api --project=google-project-id --region=europe-west6
|
|
1242
1160
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/stage/api --quiet --delete-tags
|
|
1243
1161
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1244
|
-
- echo 'Disabling component in Dependency Track'
|
|
1245
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1246
1162
|
- set -e
|
|
1247
1163
|
environment:
|
|
1248
1164
|
name: stage/api
|
|
@@ -1402,28 +1318,6 @@ before_script:
|
|
|
1402
1318
|
- 'api ๐จ app | prod '
|
|
1403
1319
|
retry: *a1
|
|
1404
1320
|
interruptible: true
|
|
1405
|
-
'api ๐งพ 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" api
|
|
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
|
'api ๐ 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 europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
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/api" "$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/api
|
|
@@ -1523,8 +1415,6 @@ before_script:
|
|
|
1523
1415
|
artifacts: false
|
|
1524
1416
|
- job: 'api ๐จ docker | prod '
|
|
1525
1417
|
artifacts: false
|
|
1526
|
-
- job: 'api ๐งพ 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-api --project=google-project-id --region=europe-west6
|
|
1546
1436
|
- gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/prod/api --quiet --delete-tags
|
|
1547
1437
|
- gcloud artifacts docker images list europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api --sort-by=~CREATE_TIME --format="value(version)" | tail -n +2 | while read -r version; do gcloud artifacts docker images delete europe-west6-docker.pkg.dev/google-project-id/catladder-deploy/pan-test-app/caches/api@$version --quiet --delete-tags; done
|
|
1548
|
-
- echo 'Disabling component in Dependency Track'
|
|
1549
|
-
- /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" disable "pan-test-app/api" "$CI_ENVIRONMENT_URL" || true
|
|
1550
1438
|
- set -e
|
|
1551
1439
|
environment:
|
|
1552
1440
|
name: prod/api
|