start.simoncor.net/.drone.yml
Simon Cornet ab68e63f01
Some checks reported errors
continuous-integration/drone/push Build was killed
[CI] Fixed stuff
2023-03-23 10:48:44 +01:00

46 lines
850 B
YAML

---
kind: 'pipeline'
name: 'build'
type: 'kubernetes'
steps:
# build and publish
- image: '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.0'
- 'latest'
# deploy to kubernetes
- image: 'docker.io/bitnami/kubectl'
name: 'deploy'
pull: 'always'
environment:
KUBE_CONFIG:
from_secret: 'kube_config'
commands:
- 'echo $KUBE_CONFIG >> $HOME/config'
- 'kubectl --kubeconfig=$HOME/config -n start-simoncor-net rollout restart deployment start-simoncor-net '