Compare commits

..

13 commits

Author SHA1 Message Date
an
b7dbf90b90 '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:53:57 +00:00
an
22a2bf6f3f '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:40:48 +00:00
an
36c4993812 '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:37:24 +00:00
an
580390cbcd '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:33:35 +00:00
an
86c14ea59e '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:32:09 +00:00
an
178013c6af '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:29:23 +00:00
an
fb2ce9be76 '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:28:17 +00:00
an
56d695868f '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:24:37 +00:00
an
879fabebfa '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:23:49 +00:00
an
29fae90821 '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:22:56 +00:00
an
bbb98669c9 '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:15:57 +00:00
an
adefe38a1c '.drone.yml' ändern
Some checks failed
the build failed
2018-02-24 07:14:28 +00:00
an
f7ec72f86e Testing
Some checks failed
the build failed
2018-02-24 07:08:21 +00:00

View file

@ -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"