-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rancher-pipeline.yml
75 lines (75 loc) · 1.73 KB
/
.rancher-pipeline.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
stages:
- name: Prerequisites
steps:
- runScriptConfig:
image: badouralix/rancher-cli
shellScript: rancher projects
envFrom:
- sourceName: rancher-cli-access
sourceKey: RANCHER_ACCESS_KEY
- sourceName: rancher-cli-access
sourceKey: RANCHER_SECRET_KEY
- sourceName: rancher-cli-access
sourceKey: RANCHER_URL
when:
branch:
include:
- test
- name: Compile And Test
steps:
- publishImageConfig:
dockerfilePath: ./Dockerfile
buildContext: .
tag: ${CICD_GIT_REPO_NAME}/next:${CICD_EXECUTION_SEQUENCE}
when:
branch:
exclude:
- test
- name: Deploy
steps:
- applyYamlConfig:
path: ./k8s/deployment-dev.yaml
when:
branch:
include:
- develop
- applyYamlConfig:
path: ./k8s/deployment-pre.yaml
when:
branch:
include:
- release/*
- applyYamlConfig:
path: ./k8s/deployment-prod.yaml
when:
branch:
include:
- master
- name: Configuration
steps:
- applyYamlConfig:
path: ./configMaps/config-dev.yaml
when:
branch:
include:
- develop
- applyYamlConfig:
path: ./configMaps/config-pre.yaml
when:
branch:
include:
- release/*
- applyYamlConfig:
path: ./configMaps/config-prod.yaml
when:
branch:
include:
- master
timeout: 20
branch:
include:
- master
- develop
- release/*
- test
notification: {}