This repository has been archived on 2024-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
roundcube/.drone.yml
Simon Cornet f037b04cdf
All checks were successful
continuous-integration/drone/push Build is passing
[CI] Added kube deployment and use full path for composer
2023-07-03 11:04:07 +02:00

49 lines
869 B
YAML

---
kind: 'pipeline'
name: 'build'
type: 'kubernetes'
steps:
# build and publish
- image: 'docker.io/plugins/docker'
name: 'publish'
pull: 'always'
settings:
# registery and repos
registry: 'cr.simoncor.net'
repo: 'cr.simoncor.net/siempie/roundcube'
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'
- 'latest'
# deploy to kubernetes
- image: 'docker.io/bitnami/kubectl'
name: 'deploy'
pull: 'always'
settings:
mtu: '1440'
environment:
KUBE_CONFIG:
from_secret: 'drone_kube_config'
commands:
- 'echo "$KUBE_CONFIG" > $HOME/.kube/config'
- 'kubectl -n roundcube rollout restart statefulsets roundcube-app'