@catladder/pipeline 0.0.0-pre-post-deploy-16df7b54 → 0.0.0-pre-post-deploy-d45c61aa

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/constants.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
7
- exports.PIPELINE_IMAGE_TAG = "pre-post-deploy-16df7b54" || "latest";
7
+ exports.PIPELINE_IMAGE_TAG = "pre-post-deploy-d45c61aa" || "latest";
8
8
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || "git.panter.ch:5001/catladder/catladder";
@@ -374,6 +374,7 @@ api 🧪 test:
374
374
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
375
375
  - export CLOUDSDK_CORE_DISABLE_PROMPTS="1"
376
376
  - collapseable_section_end "injectvars"
377
+ - echo "predeploy"
377
378
  - collapseable_section_start "prepare" "Prepare..."
378
379
  - gcloud auth activate-service-account --key-file=<(echo "$CL_dev_api_GCLOUD_DEPLOY_credentialsKey")
379
380
  - export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe google-project-id --format="value(projectNumber)")
@@ -423,6 +424,7 @@ api 🧪 test:
423
424
  - collapseable_section_end "cleanup"
424
425
  - echo 'Uploading SBOM to Dependency Track'
425
426
  - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "https://$(printf %s "pan-test-app-dev-api-$CL_dev_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" "__sbom.json" vex.json || true
427
+ - echo "postdeploy"
426
428
  - echo "CL_GITLAB_ENVIRONMENT_URL=https://$(printf %s "pan-test-app-dev-api-$CL_dev_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" >> gitlab_environment.env
427
429
  environment:
428
430
  name: dev/api
@@ -677,6 +679,7 @@ api 🧪 test:
677
679
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
678
680
  - export CLOUDSDK_CORE_DISABLE_PROMPTS="1"
679
681
  - collapseable_section_end "injectvars"
682
+ - echo "predeploy"
680
683
  - collapseable_section_start "prepare" "Prepare..."
681
684
  - gcloud auth activate-service-account --key-file=<(echo "$CL_review_api_GCLOUD_DEPLOY_credentialsKey")
682
685
  - export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe google-project-id --format="value(projectNumber)")
@@ -729,6 +732,7 @@ api 🧪 test:
729
732
  - collapseable_section_end "cleanup"
730
733
  - echo 'Uploading SBOM to Dependency Track'
731
734
  - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "https://$(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-api-$CL_review_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" "__sbom.json" vex.json || true
735
+ - echo "postdeploy"
732
736
  - echo "CL_GITLAB_ENVIRONMENT_URL=https://$(printf %s "pan-test-app-review-$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; })-api-$CL_review_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" >> gitlab_environment.env
733
737
  environment:
734
738
  name: review/$CI_COMMIT_REF_NAME/api
@@ -982,6 +986,7 @@ api 🧪 test:
982
986
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
983
987
  - export CLOUDSDK_CORE_DISABLE_PROMPTS="1"
984
988
  - collapseable_section_end "injectvars"
989
+ - echo "predeploy"
985
990
  - collapseable_section_start "prepare" "Prepare..."
986
991
  - gcloud auth activate-service-account --key-file=<(echo "$CL_stage_api_GCLOUD_DEPLOY_credentialsKey")
987
992
  - export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe google-project-id --format="value(projectNumber)")
@@ -1031,6 +1036,7 @@ api 🧪 test:
1031
1036
  - collapseable_section_end "cleanup"
1032
1037
  - echo 'Uploading SBOM to Dependency Track'
1033
1038
  - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "https://$(printf %s "pan-test-app-stage-api-$CL_stage_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" "__sbom.json" vex.json || true
1039
+ - echo "postdeploy"
1034
1040
  - echo "CL_GITLAB_ENVIRONMENT_URL=https://$(printf %s "pan-test-app-stage-api-$CL_stage_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" >> gitlab_environment.env
1035
1041
  environment:
1036
1042
  name: stage/api
@@ -1274,6 +1280,7 @@ api 🧪 test:
1274
1280
  - export DOCKER_IMAGE_TAG="$CI_COMMIT_SHA"
1275
1281
  - export CLOUDSDK_CORE_DISABLE_PROMPTS="1"
1276
1282
  - collapseable_section_end "injectvars"
1283
+ - echo "predeploy"
1277
1284
  - collapseable_section_start "prepare" "Prepare..."
1278
1285
  - gcloud auth activate-service-account --key-file=<(echo "$CL_prod_api_GCLOUD_DEPLOY_credentialsKey")
1279
1286
  - export GCLOUD_PROJECT_NUMBER=$(gcloud projects describe google-project-id --format="value(projectNumber)")
@@ -1323,6 +1330,7 @@ api 🧪 test:
1323
1330
  - collapseable_section_end "cleanup"
1324
1331
  - echo 'Uploading SBOM to Dependency Track'
1325
1332
  - /dtrackuploader https://dep.panter.swiss/ "$DT_KEY_PROD" upload "pan-test-app/api" "https://$(printf %s "pan-test-app-prod-api-$CL_prod_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" "__sbom.json" vex.json || true
1333
+ - echo "postdeploy"
1326
1334
  - echo "CL_GITLAB_ENVIRONMENT_URL=https://$(printf %s "pan-test-app-prod-api-$CL_prod_api_GCLOUD_RUN_canonicalHostSuffix" | awk '{print tolower($0)}')" >> gitlab_environment.env
1327
1335
  environment:
1328
1336
  name: prod/api
@@ -13,9 +13,6 @@ const config: Config = {
13
13
  type: "google-cloudrun",
14
14
  projectId: "google-project-id",
15
15
  region: "europe-west6",
16
-
17
- preDeployScript: [`echo "predeploy"`],
18
- postDeployScript: [`echo "postdeploy"`],
19
16
  },
20
17
  },
21
18
  },
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "0.0.0-pre-post-deploy-16df7b54",
56
+ "version": "0.0.0-pre-post-deploy-d45c61aa",
57
57
  "stableVersion": "0.1.0",
58
58
  "scripts": {
59
59
  "build:tsc": "yarn tsc",