@catladder/pipeline 3.19.0 → 3.20.1
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 +1 -1
- package/dist/pipeline/agent/createAgentReviewJob.js +1 -0
- package/dist/pipeline/createMainPipeline.js +1 -1
- package/dist/pipeline/gitlab/gitlabReleaseJobs.d.ts +2 -1
- package/dist/pipeline/gitlab/gitlabReleaseJobs.js +48 -3
- package/dist/rules/index.d.ts +1 -3
- package/dist/rules/index.js +2 -19
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +5 -0
- package/dist/types/release.d.ts +7 -0
- package/dist/types/release.js +5 -0
- package/examples/__snapshots__/automatic-releases.test.ts.snap +1484 -0
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-llama.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +1 -2
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +0 -2
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +0 -2
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +0 -2
- package/examples/__snapshots__/custom-build-job.test.ts.snap +0 -2
- package/examples/__snapshots__/custom-deploy.test.ts.snap +0 -2
- package/examples/__snapshots__/custom-envs.test.ts.snap +0 -2
- package/examples/__snapshots__/custom-sbom-java.test.ts.snap +0 -2
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +0 -2
- package/examples/__snapshots__/git-submodule.test.ts.snap +0 -2
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +0 -2
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +0 -2
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +0 -2
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +0 -2
- package/examples/__snapshots__/local-dot-env.test.ts.snap +0 -2
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +0 -2
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +0 -2
- package/examples/__snapshots__/multiline-var.test.ts.snap +0 -2
- package/examples/__snapshots__/native-app.test.ts.snap +0 -2
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +0 -2
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +0 -2
- package/examples/__snapshots__/override-secrets.test.ts.snap +0 -2
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +0 -2
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +0 -2
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +0 -2
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +0 -2
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +0 -2
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +0 -2
- package/examples/automatic-releases.test.ts +11 -0
- package/examples/automatic-releases.ts +28 -0
- package/package.json +1 -1
- package/src/pipeline/agent/createAgentReviewJob.ts +1 -1
- package/src/pipeline/createMainPipeline.ts +9 -7
- package/src/pipeline/gitlab/gitlabReleaseJobs.ts +37 -4
- package/src/rules/index.ts +0 -32
- package/src/types/config.ts +6 -0
- package/src/types/release.ts +7 -0
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -655,8 +655,6 @@ create release:
|
|
|
655
655
|
- &a4
|
|
656
656
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
657
657
|
when: never
|
|
658
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
659
|
-
when: on_success
|
|
660
658
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
661
659
|
when: manual
|
|
662
660
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1477,8 +1477,6 @@ create release:
|
|
|
1477
1477
|
- &a4
|
|
1478
1478
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1479
1479
|
when: never
|
|
1480
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1481
|
-
when: on_success
|
|
1482
1480
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1483
1481
|
when: manual
|
|
1484
1482
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1569,8 +1569,6 @@ create release:
|
|
|
1569
1569
|
- &a4
|
|
1570
1570
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1571
1571
|
when: never
|
|
1572
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1573
|
-
when: on_success
|
|
1574
1572
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1575
1573
|
when: manual
|
|
1576
1574
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1479,8 +1479,6 @@ create release:
|
|
|
1479
1479
|
- &a4
|
|
1480
1480
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1481
1481
|
when: never
|
|
1482
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1483
|
-
when: on_success
|
|
1484
1482
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1485
1483
|
when: manual
|
|
1486
1484
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1529,8 +1529,6 @@ create release:
|
|
|
1529
1529
|
- &a4
|
|
1530
1530
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1531
1531
|
when: never
|
|
1532
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1533
|
-
when: on_success
|
|
1534
1532
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1535
1533
|
when: manual
|
|
1536
1534
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1529,8 +1529,6 @@ create release:
|
|
|
1529
1529
|
- &a4
|
|
1530
1530
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1531
1531
|
when: never
|
|
1532
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1533
|
-
when: on_success
|
|
1534
1532
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1535
1533
|
when: manual
|
|
1536
1534
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1533,8 +1533,6 @@ create release:
|
|
|
1533
1533
|
- &a4
|
|
1534
1534
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1535
1535
|
when: never
|
|
1536
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1537
|
-
when: on_success
|
|
1538
1536
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1539
1537
|
when: manual
|
|
1540
1538
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1339,8 +1339,6 @@ create release:
|
|
|
1339
1339
|
- &a4
|
|
1340
1340
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1341
1341
|
when: never
|
|
1342
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1343
|
-
when: on_success
|
|
1344
1342
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1345
1343
|
when: manual
|
|
1346
1344
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1535,6 +1535,7 @@ claude claude-agent-review:
|
|
|
1535
1535
|
- if: $CI_COMMIT_TAG
|
|
1536
1536
|
retry: *a1
|
|
1537
1537
|
interruptible: true
|
|
1538
|
+
allow_failure: true
|
|
1538
1539
|
create release:
|
|
1539
1540
|
stage: release
|
|
1540
1541
|
image: path/to/docker/semantic-release:the-version
|
|
@@ -1551,8 +1552,6 @@ create release:
|
|
|
1551
1552
|
- &a4
|
|
1552
1553
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1553
1554
|
when: never
|
|
1554
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1555
|
-
when: on_success
|
|
1556
1555
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1557
1556
|
when: manual
|
|
1558
1557
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1776,8 +1776,6 @@ create release:
|
|
|
1776
1776
|
- &a4
|
|
1777
1777
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1778
1778
|
when: never
|
|
1779
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1780
|
-
when: on_success
|
|
1781
1779
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1782
1780
|
when: manual
|
|
1783
1781
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -4702,8 +4702,6 @@ create release:
|
|
|
4702
4702
|
- &a4
|
|
4703
4703
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
4704
4704
|
when: never
|
|
4705
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
4706
|
-
when: on_success
|
|
4707
4705
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
4708
4706
|
when: manual
|
|
4709
4707
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -3077,8 +3077,6 @@ create release:
|
|
|
3077
3077
|
- &a4
|
|
3078
3078
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
3079
3079
|
when: never
|
|
3080
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
3081
|
-
when: on_success
|
|
3082
3080
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
3083
3081
|
when: manual
|
|
3084
3082
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1882,8 +1882,6 @@ create release:
|
|
|
1882
1882
|
- &a4
|
|
1883
1883
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1884
1884
|
when: never
|
|
1885
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1886
|
-
when: on_success
|
|
1887
1885
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1888
1886
|
when: manual
|
|
1889
1887
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1467,8 +1467,6 @@ create release:
|
|
|
1467
1467
|
- &a4
|
|
1468
1468
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1469
1469
|
when: never
|
|
1470
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1471
|
-
when: on_success
|
|
1472
1470
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1473
1471
|
when: manual
|
|
1474
1472
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1328,8 +1328,6 @@ create release:
|
|
|
1328
1328
|
- &a5
|
|
1329
1329
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1330
1330
|
when: never
|
|
1331
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1332
|
-
when: on_success
|
|
1333
1331
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1334
1332
|
when: manual
|
|
1335
1333
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1211,8 +1211,6 @@ create release:
|
|
|
1211
1211
|
- &a4
|
|
1212
1212
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1213
1213
|
when: never
|
|
1214
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1215
|
-
when: on_success
|
|
1216
1214
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1217
1215
|
when: manual
|
|
1218
1216
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1112,8 +1112,6 @@ create release:
|
|
|
1112
1112
|
- &a4
|
|
1113
1113
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1114
1114
|
when: never
|
|
1115
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1116
|
-
when: on_success
|
|
1117
1115
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1118
1116
|
when: manual
|
|
1119
1117
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -843,8 +843,6 @@ create release:
|
|
|
843
843
|
- &a4
|
|
844
844
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
845
845
|
when: never
|
|
846
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
847
|
-
when: on_success
|
|
848
846
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
849
847
|
when: manual
|
|
850
848
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1207,8 +1207,6 @@ create release:
|
|
|
1207
1207
|
- &a4
|
|
1208
1208
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1209
1209
|
when: never
|
|
1210
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1211
|
-
when: on_success
|
|
1212
1210
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1213
1211
|
when: manual
|
|
1214
1212
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1681,8 +1681,6 @@ create release:
|
|
|
1681
1681
|
- &a4
|
|
1682
1682
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1683
1683
|
when: never
|
|
1684
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1685
|
-
when: on_success
|
|
1686
1684
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1687
1685
|
when: manual
|
|
1688
1686
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1462,8 +1462,6 @@ create release:
|
|
|
1462
1462
|
- &a4
|
|
1463
1463
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1464
1464
|
when: never
|
|
1465
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1466
|
-
when: on_success
|
|
1467
1465
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1468
1466
|
when: manual
|
|
1469
1467
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1780,8 +1780,6 @@ create release:
|
|
|
1780
1780
|
- &a4
|
|
1781
1781
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1782
1782
|
when: never
|
|
1783
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1784
|
-
when: on_success
|
|
1785
1783
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1786
1784
|
when: manual
|
|
1787
1785
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1800,8 +1800,6 @@ create release:
|
|
|
1800
1800
|
- &a4
|
|
1801
1801
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1802
1802
|
when: never
|
|
1803
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1804
|
-
when: on_success
|
|
1805
1803
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1806
1804
|
when: manual
|
|
1807
1805
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -3392,8 +3392,6 @@ create release:
|
|
|
3392
3392
|
- &a4
|
|
3393
3393
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
3394
3394
|
when: never
|
|
3395
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
3396
|
-
when: on_success
|
|
3397
3395
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
3398
3396
|
when: manual
|
|
3399
3397
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1904,8 +1904,6 @@ create release:
|
|
|
1904
1904
|
- &a4
|
|
1905
1905
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1906
1906
|
when: never
|
|
1907
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1908
|
-
when: on_success
|
|
1909
1907
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1910
1908
|
when: manual
|
|
1911
1909
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1385,8 +1385,6 @@ create release:
|
|
|
1385
1385
|
- &a4
|
|
1386
1386
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1387
1387
|
when: never
|
|
1388
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1389
|
-
when: on_success
|
|
1390
1388
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1391
1389
|
when: manual
|
|
1392
1390
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1857,8 +1857,6 @@ create release:
|
|
|
1857
1857
|
- &a4
|
|
1858
1858
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1859
1859
|
when: never
|
|
1860
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1861
|
-
when: on_success
|
|
1862
1860
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1863
1861
|
when: manual
|
|
1864
1862
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -617,8 +617,6 @@ create release:
|
|
|
617
617
|
- &a4
|
|
618
618
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
619
619
|
when: never
|
|
620
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
621
|
-
when: on_success
|
|
622
620
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
623
621
|
when: manual
|
|
624
622
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -5772,8 +5772,6 @@ create release:
|
|
|
5772
5772
|
- &a4
|
|
5773
5773
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
5774
5774
|
when: never
|
|
5775
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
5776
|
-
when: on_success
|
|
5777
5775
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
5778
5776
|
when: manual
|
|
5779
5777
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -2313,8 +2313,6 @@ create release:
|
|
|
2313
2313
|
- &a4
|
|
2314
2314
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
2315
2315
|
when: never
|
|
2316
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
2317
|
-
when: on_success
|
|
2318
2316
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
2319
2317
|
when: manual
|
|
2320
2318
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1461,8 +1461,6 @@ create release:
|
|
|
1461
1461
|
- &a4
|
|
1462
1462
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1463
1463
|
when: never
|
|
1464
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1465
|
-
when: on_success
|
|
1466
1464
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1467
1465
|
when: manual
|
|
1468
1466
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1469,8 +1469,6 @@ create release:
|
|
|
1469
1469
|
- &a4
|
|
1470
1470
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1471
1471
|
when: never
|
|
1472
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1473
|
-
when: on_success
|
|
1474
1472
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1475
1473
|
when: manual
|
|
1476
1474
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1486,8 +1486,6 @@ create release:
|
|
|
1486
1486
|
- &a4
|
|
1487
1487
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1488
1488
|
when: never
|
|
1489
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1490
|
-
when: on_success
|
|
1491
1489
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1492
1490
|
when: manual
|
|
1493
1491
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1523,8 +1523,6 @@ create release:
|
|
|
1523
1523
|
- &a5
|
|
1524
1524
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1525
1525
|
when: never
|
|
1526
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1527
|
-
when: on_success
|
|
1528
1526
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1529
1527
|
when: manual
|
|
1530
1528
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1503,8 +1503,6 @@ create release:
|
|
|
1503
1503
|
- &a5
|
|
1504
1504
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1505
1505
|
when: never
|
|
1506
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1507
|
-
when: on_success
|
|
1508
1506
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1509
1507
|
when: manual
|
|
1510
1508
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -4832,8 +4832,6 @@ create release:
|
|
|
4832
4832
|
- &a4
|
|
4833
4833
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
4834
4834
|
when: never
|
|
4835
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
4836
|
-
when: on_success
|
|
4837
4835
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
4838
4836
|
when: manual
|
|
4839
4837
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -1503,8 +1503,6 @@ create release:
|
|
|
1503
1503
|
- &a4
|
|
1504
1504
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
1505
1505
|
when: never
|
|
1506
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
1507
|
-
when: on_success
|
|
1508
1506
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
1509
1507
|
when: manual
|
|
1510
1508
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -2405,8 +2405,6 @@ create release:
|
|
|
2405
2405
|
- &a4
|
|
2406
2406
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
2407
2407
|
when: never
|
|
2408
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
2409
|
-
when: on_success
|
|
2410
2408
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
2411
2409
|
when: manual
|
|
2412
2410
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -2397,8 +2397,6 @@ create release:
|
|
|
2397
2397
|
- &a4
|
|
2398
2398
|
if: $CI_PIPELINE_SOURCE == "schedule"
|
|
2399
2399
|
when: never
|
|
2400
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $AUTO_RELEASE == "true"
|
|
2401
|
-
when: on_success
|
|
2402
2400
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
2403
2401
|
when: manual
|
|
2404
2402
|
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+.([0-9]+|x).x$/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createYamlLocalPipeline } from "./__utils__/helpers";
|
|
2
|
+
import config from "./automatic-releases";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This test is auto-generated.
|
|
6
|
+
* Modifications will be overwritten on every `yarn test` run!
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
it("matches snapshot for automatic-releases local pipeline YAML", async () => {
|
|
10
|
+
expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
|
|
11
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Config } from "../src";
|
|
2
|
+
|
|
3
|
+
const config = {
|
|
4
|
+
appName: "test-app",
|
|
5
|
+
customerName: "pan",
|
|
6
|
+
releases: {
|
|
7
|
+
when: "auto",
|
|
8
|
+
},
|
|
9
|
+
components: {
|
|
10
|
+
www: {
|
|
11
|
+
dir: "www",
|
|
12
|
+
build: {
|
|
13
|
+
type: "node",
|
|
14
|
+
},
|
|
15
|
+
deploy: {
|
|
16
|
+
type: "google-cloudrun",
|
|
17
|
+
projectId: "google-project-id",
|
|
18
|
+
region: "europe-west6",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
} satisfies Config;
|
|
23
|
+
|
|
24
|
+
export default config;
|
|
25
|
+
|
|
26
|
+
export const information = {
|
|
27
|
+
title: "Automatic Releases on main branch",
|
|
28
|
+
};
|
package/package.json
CHANGED
|
@@ -99,13 +99,15 @@ export const createMainPipeline = async <T extends PipelineType>(
|
|
|
99
99
|
jobs: {
|
|
100
100
|
...allJobs,
|
|
101
101
|
...Object.fromEntries(
|
|
102
|
-
Object.entries(getGitlabReleaseJobs()).map(
|
|
103
|
-
name,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
Object.entries(getGitlabReleaseJobs(config)).map(
|
|
103
|
+
([name, gitlabJob]) => [
|
|
104
|
+
name,
|
|
105
|
+
{
|
|
106
|
+
gitlabJob,
|
|
107
|
+
context: null,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
),
|
|
109
111
|
),
|
|
110
112
|
},
|
|
111
113
|
variables: config.runnerVariables,
|