-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
57 lines (53 loc) · 1.51 KB
/
wercker.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
box: maven:latest
build:
steps:
- script:
name: Maven install
code: mvn -f financials-ms/pom.xml install -DskipTests
#test-api:
# box: node:8
# steps:
# - npm-install:
# options: --no-optional
# - script:
# name: print-dredd-version
# code: npm info dredd version
# - npm-test
push-to-releases:
steps:
- internal/docker-build:
dockerfile: financials-ms/Dockerfile
image-name: financials-ms-image
- internal/docker-push:
image-name: financials-ms-image
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
repository: $DOCKER_USERNAME/financials-ms-1.0.0.0
tag: latest
deploy-to-oke:
box:
id: alpine
cmd: /bin/sh
steps:
- bash-template
- kubectl:
name: delete namespace
server: $KUBERNETES_MASTER
token: $KUBERNETES_TOKEN
insecure-skip-tls-verify: true
command: delete namespace $KUBERNETES_NAMESPACE --ignore-not-found=true
- script:
name: wait to delete namespace
code: sleep 30
- kubectl:
name: create namespace
server: $KUBERNETES_MASTER
token: $KUBERNETES_TOKEN
insecure-skip-tls-verify: true
command: create namespace $KUBERNETES_NAMESPACE
- kubectl:
name: create
server: $KUBERNETES_MASTER
token: $KUBERNETES_TOKEN
insecure-skip-tls-verify: true
command: create -f $WERCKER_ROOT/financials-ms-template.yml --namespace=$KUBERNETES_NAMESPACE