Skip to content

Commit fbf4f12

Browse files
authored
Merge pull request #425 from code0-tech/preparation-for-canary-release
Preparation for canary release
2 parents 043cc4e + 131d96c commit fbf4f12

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ stages:
33
- container
44
- container:boot
55

6+
workflow:
7+
rules:
8+
# do not run pipeline if release-tools pushes
9+
- if: $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN == "code0-release-tools"
10+
when: never
11+
# trigger a pipeline when triggered by api
12+
- if: $CI_PIPELINE_SOURCE == "api"
13+
# trigger a pipeline when triggered from upstream project
14+
- if: $CI_PIPELINE_SOURCE == "pipeline"
15+
# trigger a pipeline when triggerd manually
16+
- if: $CI_PIPELINE_SOURCE == "web"
17+
618
.default-retry:
719
retry:
820
max: 2

.gitlab/ci/prepare.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ generate-environment:
22
stage: prepare
33
image: alpine:3.22
44
script:
5-
- echo "RETICULUM_CONTAINER_VERSION=$(cat VERSION)-experimental-$CI_PIPELINE_ID-$CI_COMMIT_SHA" > .gitlab/ci/env
5+
- echo "RETICULUM_CONTAINER_VERSION=$(cat VERSION)-$RETICULUM_BUILD_TYPE-$CI_PIPELINE_ID-$CI_COMMIT_SHA" > .gitlab/ci/env
66
- |
77
echo -e "\e[0Ksection_start:`date +%s`:glpa_summary\r\e[0KHeader of the summary"
88
grep 'RETICULUM_CONTAINER_VERSION=' .gitlab/ci/env
99
echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K"
10+
variables:
11+
RETICULUM_BUILD_TYPE: experimental
1012
artifacts:
1113
expire_in: 1 day
1214
reports:

0 commit comments

Comments
 (0)