Added production
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
DutchEllie 2022-03-12 20:43:21 +01:00
parent 9bda314798
commit 72db027101
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
2 changed files with 64 additions and 10 deletions

View File

@ -2,6 +2,10 @@ kind: pipeline
type: kubernetes
name: default
trigger:
event:
- push
steps:
- name: docker
image: plugins/docker
@ -13,13 +17,6 @@ steps:
repo: dutchellie/proper-website-2
tags: latest
---
kind: pipeline
type: kubernetes
name: deploy-staging
steps:
- name: deploy-staging
image: pelotech/drone-helm3
settings:
@ -39,6 +36,46 @@ steps:
from_secret: staging_kube_certificate
kube_service_account: drone-deploy
dry_run: false
depends_on:
- docker
---
kind: pipeline
type: kubernetes
name: deploy-prod
trigger:
event:
- promote
target:
- production
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: dutchellie/proper-website-2
tags: latest
- name: deploy-production
image: pelotech/drone-helm3
settings:
mode: upgrade
chart: .drone/helm/chart
namespace: drone-production
release: newsite-production
skip_tls_verify: true
values_files:
# - .drone/helm/values.yaml
- .drone/helm/prod-val.yaml
kube_api_server:
from_secret: prod_api_server
kube_token:
from_secret: prod_kube_token
kube_certificate:
from_secret: prod_kube_certificate
kube_service_account: drone-deploy
dry_run: false

17
.drone/helm/prod-val.yaml Normal file
View File

@ -0,0 +1,17 @@
name: newsite-prod
service:
name: newsite-prod
ingress:
name: newsite-prod
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
external-dns.alpha.kubernetes.io/hostname: "newsite.dutchellie.nl"
tls:
- hosts:
- newsite.dutchellie.nl
secretName: newsite-tls
hosts:
- host: newsite.dutchellie.nl
paths:
- path: /
pathType: Prefix