Compare commits
13 Commits
d5a89c7e7d
...
b7dbf90b90
Author | SHA1 | Date |
---|---|---|
an | b7dbf90b90 | |
an | 22a2bf6f3f | |
an | 36c4993812 | |
an | 580390cbcd | |
an | 86c14ea59e | |
an | 178013c6af | |
an | fb2ce9be76 | |
an | 56d695868f | |
an | 879fabebfa | |
an | 29fae90821 | |
an | bbb98669c9 | |
an | adefe38a1c | |
an | f7ec72f86e |
10
.drone.yml
10
.drone.yml
|
@ -1,7 +1,10 @@
|
|||
pipeline:
|
||||
prebuild:
|
||||
image: golang:1.9
|
||||
secrets:
|
||||
- FOO
|
||||
commands:
|
||||
- echo "$FOO"
|
||||
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME
|
||||
- REV=$(git rev-list HEAD --count)
|
||||
- BUILDDATE=$(date)
|
||||
|
@ -32,6 +35,9 @@
|
|||
- latest
|
||||
deploy:
|
||||
image: ubuntu:16.04
|
||||
environment:
|
||||
- K8S_SSH_PRIVATE_KEY=${K8S_SSH_PRIVATE_KEY}
|
||||
- K8S_SSH_PUBLIC_KEY=${K8S_SSH_PUBLIC_KEY}
|
||||
commands:
|
||||
- apt update
|
||||
- apt -y upgrade
|
||||
|
@ -43,9 +49,9 @@
|
|||
- cd ~
|
||||
- mkdir .ssh
|
||||
- chmod 700 .ssh
|
||||
- echo K8S_SSH_PRIVATE_KEY >.ssh/id_rsa
|
||||
- echo "$K8S_SSH_PRIVATE_KEY" >.ssh/id_rsa
|
||||
- chmod 600 .ssh/id_rsa
|
||||
- echo K8S_SSH_PUBLIC_KEY >.ssh/id_rsa.pub
|
||||
- echo "$K8S_SSH_PUBLIC_KEY" >.ssh/id_rsa.pub
|
||||
- chmod 600 .ssh/id_rsa.pub
|
||||
- ssh -oStrictHostKeyChecking=no root@master01 "kubectl set image deployment/mmflokati-flokati mmflokati-flokati=dr.dnix.de/mmflokati:$BRANCH-$REV -n northbrigade"
|
||||
- ssh -oStrictHostKeyChecking=no root@master01 "kubectl set image deployment/mmflokati-armleuchter mmflokati-armleuchter=dr.dnix.de/mmflokati:$BRANCH-$REV -n northbrigade"
|
||||
|
|
Loading…
Reference in New Issue