forked from FairwindsOps/rok8s-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
42 lines (34 loc) · 954 Bytes
/
circle.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
machine:
environment:
PATH: $PATH:node_modules/.bin
CI_SHA1: $CIRCLE_SHA1
CI_BRANCH: $CIRCLE_BRANCH
CI_BUILD_NUM: $CIRCLE_BUILD_NUM
ROK8S_ENABLE_OPTIONAL_CONFIGS: yes
services:
- docker
dependencies:
pre:
- npm install
- docker-pull -f deploy/build.config
- docker-build -f deploy/build.config
override:
- echo "overriding inferred dependencies"
test:
override:
- echo "overriding any inferred tests"
deployment:
staging:
branch: [master]
commands:
- install-rok8s-requirements
- prepare-kubectl
- NAMESPACE=staging docker-push -f deploy/app.config
- NAMESPACE=staging k8s-deploy-and-verify -f deploy/app.config
production:
branch: [production]
commands:
- install-rok8s-requirements
- prepare-kubectl
- NAMESPACE=production docker-push -f deploy/app.config
- NAMESPACE=production k8s-deploy-and-verify -f deploy/app.config