-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yaml
51 lines (43 loc) · 1.63 KB
/
.gitlab-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
include:
- remote: 'https://raw.githubusercontent.com/deckhouse/modules-gitlab-ci/refs/heads/main/templates/Setup.gitlab-ci.yml'
- remote: 'https://raw.githubusercontent.com/deckhouse/modules-gitlab-ci/refs/heads/main/templates/Build.gitlab-ci.yml'
- remote: 'https://raw.githubusercontent.com/deckhouse/modules-gitlab-ci/refs/heads/main/templates/Deploy.gitlab-ci.yml'
# Change the values of the variables below to match your project.
# To use Gitlab embedded registry, set the values to the following:
# MODULES_MODULE_NAME: the-name-of-your-module
# MODULES_REGISTRY: registry.your-gitlab-address.com
# MODULES_MODULE_SOURCE: registry.your-gitlab-address.com/path/to/your/repo
# MODULES_MODULE_TAG: ${CI_COMMIT_REF_NAME}
# The module will be accessible at the following address:
# - registry.your-gitlab-address.com/path/to/your/repo:the-name-of-your-module
# - registry.your-gitlab-address.com/path/to/your/repo/the-name-of-your-module:${CI_COMMIT_REF_NAME}
variables:
MODULES_MODULE_NAME: echoserver
MODULES_REGISTRY: registry.your-gitlab-address.com
MODULES_MODULE_SOURCE: registry.your-gitlab-address.com/path/to/your/repo
MODULES_MODULE_TAG: ${CI_COMMIT_REF_NAME}
default:
tags:
- my-runner
Build:
extends: .build
Deploy to Alpha:
extends: .deploy
variables:
RELEASE_CHANNEL: alpha
Deploy to Beta:
extends: .deploy
variables:
RELEASE_CHANNEL: beta
Deploy to EarlyAccess:
extends: .deploy
variables:
RELEASE_CHANNEL: early-access
Deploy to Stable:
extends: .deploy
variables:
RELEASE_CHANNEL: stable
Deploy to RockSolid:
extends: .deploy
variables:
RELEASE_CHANNEL: rock-solid