@catladder/pipeline 1.161.1 → 1.163.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/types.d.ts +6 -0
- package/dist/bundles/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +8 -4
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +8 -4
- package/examples/cloud-run-storybook.ts +9 -1
- package/examples/cloud-run-with-ngnix.ts +5 -1
- package/package.json +1 -1
- package/src/build/types.ts +6 -0
|
@@ -62,6 +62,7 @@ exports[`matches snapshot for cloud-run-with-ngnix 1`] = `
|
|
|
62
62
|
"expire_in": "1 day",
|
|
63
63
|
"paths": [
|
|
64
64
|
"app/__build_info.json",
|
|
65
|
+
"app/.next",
|
|
65
66
|
"app/dist",
|
|
66
67
|
],
|
|
67
68
|
"reports": {
|
|
@@ -333,7 +334,7 @@ EOF
|
|
|
333
334
|
",
|
|
334
335
|
"echo -e "\\e[0Ksection_end:$(date +%s):writeenvvars\\r\\e[0K"",
|
|
335
336
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
336
|
-
"gcloud run deploy pan-test-app-dev-api --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=dev,env-name=dev,build-type=node
|
|
337
|
+
"gcloud run deploy pan-test-app-dev-api --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/dev/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=dev,env-name=dev,build-type=node,cloud-run-service-name=pan-test-app-dev-api --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
337
338
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
338
339
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
339
340
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-dev-api --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
|
|
@@ -637,6 +638,7 @@ EOF
|
|
|
637
638
|
"expire_in": "1 day",
|
|
638
639
|
"paths": [
|
|
639
640
|
"app/__build_info.json",
|
|
641
|
+
"app/.next",
|
|
640
642
|
"app/dist",
|
|
641
643
|
],
|
|
642
644
|
"reports": {
|
|
@@ -908,7 +910,7 @@ EOF
|
|
|
908
910
|
",
|
|
909
911
|
"echo -e "\\e[0Ksection_end:$(date +%s):writeenvvars\\r\\e[0K"",
|
|
910
912
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
911
|
-
"gcloud run deploy $(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" | awk '{print tolower($0)}') --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/api/$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; }):$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=review,env-name=review,build-type=node
|
|
913
|
+
"gcloud run deploy $(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" | awk '{print tolower($0)}') --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/review/api/$([ -n "$CI_MERGE_REQUEST_IID" ] && echo "mr$CI_MERGE_REQUEST_IID" || { [ -n "$CI_COMMIT_REF_SLUG" ] && echo "$CI_COMMIT_REF_SLUG" || echo "unknown"; }):$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=review,env-name=review,build-type=node,cloud-run-service-name=$(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" | awk '{print tolower($0)}') --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
912
914
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
913
915
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
914
916
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=$(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" | awk '{print tolower($0)}') --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
|
|
@@ -1166,6 +1168,7 @@ EOF
|
|
|
1166
1168
|
"expire_in": "1 day",
|
|
1167
1169
|
"paths": [
|
|
1168
1170
|
"app/__build_info.json",
|
|
1171
|
+
"app/.next",
|
|
1169
1172
|
"app/dist",
|
|
1170
1173
|
],
|
|
1171
1174
|
"reports": {
|
|
@@ -1252,6 +1255,7 @@ EOF
|
|
|
1252
1255
|
"expire_in": "1 day",
|
|
1253
1256
|
"paths": [
|
|
1254
1257
|
"app/__build_info.json",
|
|
1258
|
+
"app/.next",
|
|
1255
1259
|
"app/dist",
|
|
1256
1260
|
],
|
|
1257
1261
|
"reports": {
|
|
@@ -1582,7 +1586,7 @@ EOF
|
|
|
1582
1586
|
",
|
|
1583
1587
|
"echo -e "\\e[0Ksection_end:$(date +%s):writeenvvars\\r\\e[0K"",
|
|
1584
1588
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
1585
|
-
"gcloud run deploy pan-test-app-prod-api --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=prod,env-name=prod,build-type=node
|
|
1589
|
+
"gcloud run deploy pan-test-app-prod-api --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/prod/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=prod,env-name=prod,build-type=node,cloud-run-service-name=pan-test-app-prod-api --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
1586
1590
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
1587
1591
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
1588
1592
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-prod-api --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | tail -n +6 | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
|
|
@@ -1707,7 +1711,7 @@ EOF
|
|
|
1707
1711
|
",
|
|
1708
1712
|
"echo -e "\\e[0Ksection_end:$(date +%s):writeenvvars\\r\\e[0K"",
|
|
1709
1713
|
"echo -e "\\e[0Ksection_start:$(date +%s):deploy[collapsed=true]\\r\\e[0KDeploy to cloud run"",
|
|
1710
|
-
"gcloud run deploy pan-test-app-stage-api --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=stage,env-name=stage,build-type=node
|
|
1714
|
+
"gcloud run deploy pan-test-app-stage-api --command="" --image=asia-east1-docker.pkg.dev/asdf/catladder-deploy/pan-test-app/stage/api:$DOCKER_IMAGE_TAG --project=asdf --region=asia-east1 --labels=customer-name=pan,component-name=api,app-name=test-app,env-type=stage,env-name=stage,build-type=node,cloud-run-service-name=pan-test-app-stage-api --env-vars-file=____envvars.yaml --min-instances=0 --max-instances=100 --cpu-throttling --allow-unauthenticated --ingress=all --cpu-boost",
|
|
1711
1715
|
"echo -e "\\e[0Ksection_end:$(date +%s):deploy\\r\\e[0K"",
|
|
1712
1716
|
"echo -e "\\e[0Ksection_start:$(date +%s):cleanup[collapsed=true]\\r\\e[0KCleanup"",
|
|
1713
1717
|
"gcloud run revisions list --project=asdf --region=asia-east1 --service=pan-test-app-stage-api --limit=unlimited --sort-by=metadata.creationTimestamp --format="value(name)" --filter='(status.conditions.status=False OR status.conditions.status=Unknown)' | while read -r revisionname; do gcloud run revisions delete --project=asdf --region=asia-east1 --quiet $revisionname ; done",
|
|
@@ -7,7 +7,15 @@ const config: Config = {
|
|
|
7
7
|
api: {
|
|
8
8
|
dir: "app",
|
|
9
9
|
build: {
|
|
10
|
-
type: "
|
|
10
|
+
type: "node",
|
|
11
|
+
buildCommand: "yarn build-storybook --quiet -o ./dist",
|
|
12
|
+
startCommand: "",
|
|
13
|
+
docker: {
|
|
14
|
+
type: "nginx",
|
|
15
|
+
},
|
|
16
|
+
test: false,
|
|
17
|
+
lint: false,
|
|
18
|
+
audit: false,
|
|
11
19
|
},
|
|
12
20
|
deploy: {
|
|
13
21
|
type: "google-cloudrun",
|
package/package.json
CHANGED
package/src/build/types.ts
CHANGED
|
@@ -114,6 +114,9 @@ export type BuildConfigNode = {
|
|
|
114
114
|
} & BuildConfigNodeBase;
|
|
115
115
|
|
|
116
116
|
export type BuildConfigNodeStatic = BuildConfigNodeBase & {
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated use type: "node" and docker: { type: "nginx" } instead
|
|
119
|
+
*/
|
|
117
120
|
type: "node-static";
|
|
118
121
|
startCommand?: never;
|
|
119
122
|
docker?: Omit<BuildConfigDockerBuiltInNgninx, "type"> | BuildConfigDocker;
|
|
@@ -271,6 +274,9 @@ export type BuildConfigRails = BuildConfigBase & {
|
|
|
271
274
|
};
|
|
272
275
|
|
|
273
276
|
export type BuildConfigStorybook = BuildConfigNodeBase & {
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated use type: "node" and docker: { type: "nginx" } instead
|
|
279
|
+
*/
|
|
274
280
|
type: "storybook";
|
|
275
281
|
startCommand?: never;
|
|
276
282
|
};
|