Compare commits

...

13 Commits

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

View File

@ -1,7 +1,10 @@
pipeline: pipeline:
prebuild: prebuild:
image: golang:1.9 image: golang:1.9
secrets:
- FOO
commands: commands:
- echo "$FOO"
- IMAGE=dr.dnix.de/$DRONE_REPO_NAME - IMAGE=dr.dnix.de/$DRONE_REPO_NAME
- REV=$(git rev-list HEAD --count) - REV=$(git rev-list HEAD --count)
- BUILDDATE=$(date) - BUILDDATE=$(date)
@ -32,6 +35,9 @@
- latest - latest
deploy: deploy:
image: ubuntu:16.04 image: ubuntu:16.04
environment:
- K8S_SSH_PRIVATE_KEY=${K8S_SSH_PRIVATE_KEY}
- K8S_SSH_PUBLIC_KEY=${K8S_SSH_PUBLIC_KEY}
commands: commands:
- apt update - apt update
- apt -y upgrade - apt -y upgrade
@ -43,9 +49,9 @@
- cd ~ - cd ~
- mkdir .ssh - mkdir .ssh
- chmod 700 .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 - 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 - 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-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" - ssh -oStrictHostKeyChecking=no root@master01 "kubectl set image deployment/mmflokati-armleuchter mmflokati-armleuchter=dr.dnix.de/mmflokati:$BRANCH-$REV -n northbrigade"