Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e55cb79

Browse filesBrowse files
committed
fix(common): demarcate pipeline jobs:
* engine: disable building jobs for external components tags * ui: disable ui jobs for external trigger events * ui: parse release tags properly
1 parent b3ac62d commit e55cb79
Copy full SHA for e55cb79

File tree

4 files changed

+12
-6
lines changed
Filter options

4 files changed

+12
-6
lines changed

‎engine/.gitlab-ci.yml

Copy file name to clipboardExpand all lines: engine/.gitlab-ci.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ stages:
1111
## Conditions
1212
.only_engine: &only_engine
1313
rules:
14-
- changes:
14+
- if: $CI_COMMIT_TAG =~ /^v[a-zA-Z0-9_.-]*/
15+
- if: $CI_COMMIT_BRANCH
16+
changes:
1517
- engine/**/*
1618

1719
.only_dle_tag_release: &only_tag_release

‎ui/.gitlab-ci.yml

Copy file name to clipboardExpand all lines: ui/.gitlab-ci.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.only_ui: &only_ui
22
rules:
3-
- changes:
3+
- if: $CI_COMMIT_TAG =~ /^ui\/[0-9.]+$/
4+
- if: $CI_COMMIT_BRANCH
5+
changes:
46
- ui/**/*
57

68
check_code_style:

‎ui/packages/ce/.gitlab-ci.yml

Copy file name to clipboardExpand all lines: ui/packages/ce/.gitlab-ci.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Conditions.
22
.only_ui_feature: &only_ui_feature
33
rules:
4-
- changes:
4+
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
5+
changes:
56
- ui/**/*
6-
if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
77

88
.only_ui_tag_release: &only_ui_tag_release
99
rules:

‎ui/packages/platform/.gitlab-ci.yml

Copy file name to clipboardExpand all lines: ui/packages/platform/.gitlab-ci.yml
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ workflow:
2121
ENV: production
2222
NAMESPACE: production
2323
DOCKER_NAME: "gcr.io/postgres-ai/platform-web/cloud"
24-
TAG: "${DOCKER_NAME}:${CI_COMMIT_TAG}-${CI_PIPELINE_IID}"
24+
before_script:
25+
- export UI_VERSION=$(echo ${CI_COMMIT_TAG#"ui/"})
26+
- export TAG="${DOCKER_NAME}:${UI_VERSION}-${CI_PIPELINE_IID}"
2527

2628
.environment_staging: &env_staging
2729
environment:
@@ -75,7 +77,7 @@ workflow:
7577

7678
.only_ui_feature: &only_ui_feature
7779
rules:
78-
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
80+
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
7981
changes:
8082
- ui/**/*
8183
when: manual

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.