@catladder/pipeline 3.12.5 → 3.13.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/gitlab/createGitlabPipeline.js +31 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/gitlab-types.d.ts +2 -0
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-llama.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +19 -0
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +19 -0
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +19 -0
- package/examples/__snapshots__/custom-build-job.test.ts.snap +19 -0
- package/examples/__snapshots__/custom-deploy.test.ts.snap +19 -0
- package/examples/__snapshots__/custom-envs.test.ts.snap +19 -0
- package/examples/__snapshots__/custom-sbom-java.test.ts.snap +19 -0
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +19 -0
- package/examples/__snapshots__/git-submodule.test.ts.snap +19 -0
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +19 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +19 -0
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +19 -0
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +19 -0
- package/examples/__snapshots__/local-dot-env.test.ts.snap +19 -0
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +19 -0
- package/examples/__snapshots__/multiline-var.test.ts.snap +19 -0
- package/examples/__snapshots__/native-app.test.ts.snap +19 -0
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +19 -0
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +19 -0
- package/examples/__snapshots__/override-secrets.test.ts.snap +19 -0
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +19 -0
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +19 -0
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +19 -0
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +19 -0
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +19 -0
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +19 -0
- package/package.json +1 -1
- package/src/pipeline/gitlab/createGitlabPipeline.ts +38 -0
- package/src/types/gitlab-types.ts +2 -0
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -59,6 +59,25 @@ variables:
|
|
|
59
59
|
CACHE_COMPRESSION_LEVEL: fast
|
|
60
60
|
TRANSFER_METER_FREQUENCY: 5s
|
|
61
61
|
GIT_DEPTH: '1'
|
|
62
|
+
workflow:
|
|
63
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
64
|
+
rules:
|
|
65
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
66
|
+
variables:
|
|
67
|
+
PIPELINE_ICON: 🐱🔨
|
|
68
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
69
|
+
- if: $CI_COMMIT_TAG
|
|
70
|
+
variables:
|
|
71
|
+
PIPELINE_ICON: 🐱📦
|
|
72
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
73
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
74
|
+
variables:
|
|
75
|
+
PIPELINE_ICON: 🐱🔨
|
|
76
|
+
PIPELINE_NAME: Main
|
|
77
|
+
- when: always
|
|
78
|
+
variables:
|
|
79
|
+
PIPELINE_ICON: 🐱❓
|
|
80
|
+
PIPELINE_NAME: Default
|
|
62
81
|
before_script:
|
|
63
82
|
- |-
|
|
64
83
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -46,6 +46,25 @@ variables:
|
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
48
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
49
|
+
workflow:
|
|
50
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
51
|
+
rules:
|
|
52
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
53
|
+
variables:
|
|
54
|
+
PIPELINE_ICON: 🐱🔨
|
|
55
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
56
|
+
- if: $CI_COMMIT_TAG
|
|
57
|
+
variables:
|
|
58
|
+
PIPELINE_ICON: 🐱📦
|
|
59
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
60
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
61
|
+
variables:
|
|
62
|
+
PIPELINE_ICON: 🐱🔨
|
|
63
|
+
PIPELINE_NAME: Main
|
|
64
|
+
- when: always
|
|
65
|
+
variables:
|
|
66
|
+
PIPELINE_ICON: 🐱❓
|
|
67
|
+
PIPELINE_NAME: Default
|
|
49
68
|
before_script:
|
|
50
69
|
- |-
|
|
51
70
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
|
@@ -45,6 +45,25 @@ variables:
|
|
|
45
45
|
CACHE_COMPRESSION_LEVEL: fast
|
|
46
46
|
TRANSFER_METER_FREQUENCY: 5s
|
|
47
47
|
GIT_DEPTH: '1'
|
|
48
|
+
workflow:
|
|
49
|
+
name: $PIPELINE_ICON $PIPELINE_NAME
|
|
50
|
+
rules:
|
|
51
|
+
- if: $CI_MERGE_REQUEST_ID
|
|
52
|
+
variables:
|
|
53
|
+
PIPELINE_ICON: 🐱🔨
|
|
54
|
+
PIPELINE_NAME: Merge Request $CI_MERGE_REQUEST_IID
|
|
55
|
+
- if: $CI_COMMIT_TAG
|
|
56
|
+
variables:
|
|
57
|
+
PIPELINE_ICON: 🐱📦
|
|
58
|
+
PIPELINE_NAME: Release $CI_COMMIT_TAG
|
|
59
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE !~ /^chore\\(release\\).*/
|
|
60
|
+
variables:
|
|
61
|
+
PIPELINE_ICON: 🐱🔨
|
|
62
|
+
PIPELINE_NAME: Main
|
|
63
|
+
- when: always
|
|
64
|
+
variables:
|
|
65
|
+
PIPELINE_ICON: 🐱❓
|
|
66
|
+
PIPELINE_NAME: Default
|
|
48
67
|
before_script:
|
|
49
68
|
- |-
|
|
50
69
|
function escapeForDotEnv () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { getRunnerImage } from "../../runner";
|
|
2
2
|
import type { Pipeline } from "../../types";
|
|
3
3
|
import { globalScriptFunctions } from "../../globalScriptFunctions";
|
|
4
|
+
import {
|
|
5
|
+
RULE_IS_MAIN_BRANCH_AND_NOT_RELEASE_COMMIT,
|
|
6
|
+
RULE_IS_MERGE_REQUEST,
|
|
7
|
+
RULE_IS_TAGGED_RELEASE,
|
|
8
|
+
} from "../../rules";
|
|
4
9
|
type PickRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
|
|
5
10
|
|
|
6
11
|
export const createGitlabPipelineWithDefaults = ({
|
|
@@ -29,6 +34,39 @@ export const createGitlabPipelineWithDefaults = ({
|
|
|
29
34
|
),
|
|
30
35
|
...(before_script ?? []),
|
|
31
36
|
],
|
|
37
|
+
workflow: {
|
|
38
|
+
name: "$PIPELINE_ICON $PIPELINE_NAME",
|
|
39
|
+
rules: [
|
|
40
|
+
{
|
|
41
|
+
if: RULE_IS_MERGE_REQUEST.if,
|
|
42
|
+
variables: {
|
|
43
|
+
PIPELINE_ICON: "🐱🔨",
|
|
44
|
+
PIPELINE_NAME: "Merge Request $CI_MERGE_REQUEST_IID",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
if: RULE_IS_TAGGED_RELEASE.if,
|
|
49
|
+
variables: {
|
|
50
|
+
PIPELINE_ICON: "🐱📦",
|
|
51
|
+
PIPELINE_NAME: "Release $CI_COMMIT_TAG",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
if: RULE_IS_MAIN_BRANCH_AND_NOT_RELEASE_COMMIT.if,
|
|
56
|
+
variables: {
|
|
57
|
+
PIPELINE_ICON: "🐱🔨",
|
|
58
|
+
PIPELINE_NAME: "Main",
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
when: "always", // fallback
|
|
63
|
+
variables: {
|
|
64
|
+
PIPELINE_ICON: "🐱❓",
|
|
65
|
+
PIPELINE_NAME: "Default",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
32
70
|
|
|
33
71
|
...config,
|
|
34
72
|
};
|
|
@@ -64,6 +64,8 @@ export interface GitlabPipeline extends Pick<JobTemplate, "variables"> {
|
|
|
64
64
|
image: string;
|
|
65
65
|
workflow?: {
|
|
66
66
|
rules: GitlabRule[];
|
|
67
|
+
name?: string;
|
|
68
|
+
variables?: Record<string, string>;
|
|
67
69
|
};
|
|
68
70
|
stages: string[];
|
|
69
71
|
jobs: Record<string, GitlabJobWithContext>;
|