Compare commits
2 Commits
354297dce4
...
0e2c58a2f2
Author | SHA1 | Date | |
---|---|---|---|
0e2c58a2f2 | |||
e1c1009322 |
59
.drone.yml
59
.drone.yml
@ -1,59 +0,0 @@
|
||||
---
|
||||
kind: 'pipeline'
|
||||
name: 'build'
|
||||
type: 'kubernetes'
|
||||
|
||||
steps:
|
||||
|
||||
# build and publish
|
||||
- image: 'docker.io/plugins/docker'
|
||||
name: 'publish'
|
||||
pull: 'always'
|
||||
when:
|
||||
branch:
|
||||
- 'master'
|
||||
event:
|
||||
- 'push'
|
||||
|
||||
settings:
|
||||
|
||||
# registery and repos
|
||||
registry: 'cr.simoncor.net'
|
||||
repo: 'cr.simoncor.net/siempie/start-simoncor-net'
|
||||
mtu: '1440'
|
||||
|
||||
# build stuff
|
||||
dockerfile: 'Dockerfile.linux.amd64'
|
||||
daemon_off: 'false'
|
||||
|
||||
# authentication
|
||||
username:
|
||||
from_secret: 'docker_username'
|
||||
password:
|
||||
from_secret: 'docker_password'
|
||||
|
||||
# tags
|
||||
tags:
|
||||
- 'v1.1'
|
||||
- 'latest'
|
||||
|
||||
|
||||
# deploy to kubernetes
|
||||
- image: 'docker.io/bitnami/kubectl'
|
||||
name: 'deploy'
|
||||
pull: 'always'
|
||||
settings:
|
||||
mtu: '1440'
|
||||
when:
|
||||
branch:
|
||||
- 'master'
|
||||
event:
|
||||
- 'push'
|
||||
|
||||
environment:
|
||||
KUBE_CONFIG:
|
||||
from_secret: 'drone_kube_config'
|
||||
|
||||
commands:
|
||||
- 'echo "$KUBE_CONFIG" > $HOME/.kube/config'
|
||||
- 'kubectl -n start-simoncor-net rollout restart deployment start-simoncor-net'
|
Loading…
Reference in New Issue
Block a user