-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
68 lines (59 loc) · 1.59 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
58
59
60
61
62
63
64
65
66
67
68
build:
box: hseeberger/scala-sbt
steps:
- script:
name: test & stage
code: sbt test stage -ivy "$WERCKER_CACHE_DIR/ivy" -d
- script:
name: copy application
code: cp -ra target/universal/stage "$WERCKER_OUTPUT_DIR/demo-webapp"
release:
box: openjdk
steps:
- script:
name: copy app
code: mv ./demo-webapp /demo-webapp
- internal/docker-push:
tag: $WERCKER_GIT_BRANCH-$WERCKER_GIT_COMMIT
cmd: /demo-webapp/bin/demo
ports: "9000"
inject-secret:
box:
id: alpine
cmd: /bin/sh
steps:
- kubectl:
name: delete secret
server: $KUBERNETES_MASTER
token: $KUBERNETES_TOKEN
insecure-skip-tls-verify: true
command: delete secret wercker
- kubectl:
name: create secret
server: $KUBERNETES_MASTER
token: $KUBERNETES_TOKEN
insecure-skip-tls-verify: true
command: create secret docker-registry wercker --docker-server=$DOCKER_REGISTRY --docker-username=$DOCKER_USERNAME --docker-password=$KUBERNETES_TOKEN --docker-email=$DOCKER_EMAIL
deploy-to-cluster:
box:
id: alpine
cmd: /bin/sh
steps:
- bash-template
- script:
name: show Kubernetes config
code: cat kubernetes.yml
- kubectl:
name: deploy to kubernetes
server: $KUBERNETES_MASTER
token: $KUBERNETES_TOKEN
insecure-skip-tls-verify: true
command: apply -f kubernetes.yml
alpine-test:
box:
id: alpine
cmd: /bin/sh
steps:
- script:
name: list
code: ls