-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rancher-pipeline.yml
40 lines (40 loc) · 1.08 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
stages:
- name: Test
steps:
- runScriptConfig:
image: node:slim
shellScript: NODE_ENV=development yarn && NODE_ENV=development yarn test:ci
when:
branch:
include:
- staging
- prod
event:
include:
- push
- name: Build
steps:
- publishImageConfig:
dockerfilePath: ./Dockerfile
buildContext: .
# You need to modify this line here and into deployment.yml
tag: aDockerUser/aDockerRepo:${CICD_GIT_COMMIT}
pushRemote: true
registry: index.docker.io
when:
branch:
include:
- staging
- prod
event:
include:
- push
- name: Deploy
steps:
- applyYamlConfig:
path: ./deployment.yml
branch:
include:
- staging
- prod
notification: {}