-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathwercker.yml
35 lines (28 loc) · 1.02 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
#Deploy our container from the Oracle Container Registry to the Oracle Container Engine (Kubernetes)
deploy-to-cluster:
box:
id: alpine
cmd: /bin/sh
steps:
- bash-template
- kubectl:
name: delete secret
server: $KUBERNETES_MASTER
token: $KUBERNETES_AUTH_TOKEN
insecure-skip-tls-verify: true
command: delete secret wercker; echo delete registry secret
- kubectl:
name: create secret
server: $KUBERNETES_MASTER
token: $KUBERNETES_AUTH_TOKEN
insecure-skip-tls-verify: true
command: create secret docker-registry wercker --docker-server=$DOCKER_REGISTRY [email protected] --docker-username=$DOCKER_USERNAME --docker-password='$OCI_AUTH_TOKEN'; echo create registry secret
- script:
name: "Visualise Kubernetes config"
code: cat kubernetes.yml
- kubectl:
name: deploy to kubernetes
server: $KUBERNETES_MASTER
token: $KUBERNETES_AUTH_TOKEN
insecure-skip-tls-verify: true
command: apply -f kubernetes.yml