chore(ci): prepare deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
77dc3f0c7f
commit
f7a2959b50
1 changed files with 23 additions and 1 deletions
24
.drone.yml
24
.drone.yml
|
@ -17,4 +17,26 @@ steps:
|
|||
environment:
|
||||
GITEA_USER: prskr
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
from_secret: gitea_token
|
||||
|
||||
- name: Deploy docs
|
||||
image: code.icb4dc0.de/prskr/ci-images/kustomize:latest
|
||||
network_mode: host
|
||||
commands:
|
||||
- cd deploy/k8s
|
||||
- kustomize edit set image buildr-docs=code.icb4dc0.de/buildr/docs:$DRONE_COMMIT_SHA
|
||||
- kubectl config set-cluster hetzner --server=$K8S_API_URL --insecure-skip-tls-verify=true
|
||||
- kubectl config set-credentials drone-deploy --token=$K8S_TOKEN
|
||||
- kubectl config set-context hetzner --user=drone-deploy --namespace=buildr --cluster hetzner
|
||||
- kubectl config use-context hetzner
|
||||
- kubectl apply -k .
|
||||
environment:
|
||||
K8S_TOKEN:
|
||||
from_secret: k8s_token
|
||||
K8S_API_URL:
|
||||
from_secret: k8s_api_url
|
||||
when:
|
||||
ref:
|
||||
include:
|
||||
- refs/tags/**
|
||||
- refs/heads/main
|
Loading…
Reference in a new issue