start.simoncor.net/.drone.yml
Simon Cornet 4fd5342fc9
All checks were successful
continuous-integration/drone/push Build is passing
[CI] Added image repository for docker plugins
2023-03-28 14:55:45 +02:00

49 lines
875 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: 'docker.io'
repo: 'rakepanorama/start-simoncor-net'
mtu: '1400'
# 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: '1400'
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'