You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
6 years ago
|
pipeline:
|
||
|
publish:
|
||
|
# image: plugins/docker:17.10
|
||
|
image: docker.nixaid.com:5010/plugins/docker:17.12
|
||
|
# privileged: true -- rather pass DRONE_ESCALATE=docker.nixaid.com:5010/plugins/docker:17.12 to a Drone server
|
||
|
registry: docker.nixaid.com:5010
|
||
|
repo: docker.nixaid.com:5010/andrey01/rainloop
|
||
|
# repo: andrey01/rainloop
|
||
|
tag:
|
||
|
- 1.11.3
|
||
|
- latest
|
||
|
dockerfile: Dockerfile
|
||
|
secrets: [ docker_username, docker_password ]
|
||
|
when:
|
||
|
event: [ push, tag ]
|
||
|
|
||
|
kubectl:
|
||
|
image: docker.nixaid.com:5010/andrey01/kubectl:1.9.1
|
||
|
pull: true # always pull the image
|
||
|
secrets: [ kub_key, kub_crt, kub_ca ]
|
||
|
commands:
|
||
|
- "sh .drone.sh"
|
||
|
- "kubectl --context=kub-context version"
|
||
|
- "kubectl --context=kub-context get pods"
|
||
|
- "kubectl --context=kub-context replace --force -f k8s/"
|
||
|
- "sleep 3"
|
||
|
- "kubectl --context=kub-context get pods"
|
||
|
# XXX - kubectl --context=kub-context patch deployment testapp1 -p '{"spec":{"template":{"spec":{"containers":[{"name":"testapp1","image":"andrey01/testapp1:latest"}]}}}}'
|