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

61 lines
990 B
YAML
Raw Normal View History

---
kind: 'pipeline'
name: 'build'
type: 'kubernetes'
steps:
# build and publish
- image: 'docker.io/plugins/docker'
name: 'publish'
pull: 'always'
2023-11-08 18:07:42 +01:00
when:
branch:
2023-11-08 18:12:24 +01:00
- 'main'
2024-02-06 09:17:57 +01:00
event:
- 'push'
2023-11-08 18:07:42 +01:00
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'
2023-11-08 18:07:42 +01:00
when:
branch:
2023-11-08 18:12:24 +01:00
- 'main'
2024-02-06 09:17:57 +01:00
event:
- 'push'
2023-11-08 18:07:42 +01:00
settings:
mtu: '1440'
environment:
KUBE_CONFIG:
2024-05-22 17:10:41 +02:00
from_secret: 'drone_kube_config_kaas'
commands:
- 'echo "$KUBE_CONFIG" > $HOME/.kube/config'
- 'kubectl -n roundcube rollout restart statefulsets roundcube-app'