2022-03-12 16:22:41 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: default
|
|
|
|
|
2022-03-12 20:43:21 +01:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2022-03-12 16:22:41 +01:00
|
|
|
steps:
|
2022-03-12 17:47:01 +01:00
|
|
|
- name: deploy-staging
|
|
|
|
image: pelotech/drone-helm3
|
|
|
|
settings:
|
|
|
|
mode: upgrade
|
|
|
|
chart: .drone/helm/chart
|
2022-03-12 19:11:21 +01:00
|
|
|
namespace: drone-staging
|
2022-03-12 17:47:01 +01:00
|
|
|
release: newsite-staging
|
2022-03-12 19:10:13 +01:00
|
|
|
skip_tls_verify: true
|
2022-03-12 17:47:01 +01:00
|
|
|
values_files:
|
2022-03-12 19:31:01 +01:00
|
|
|
# - .drone/helm/values.yaml
|
2022-03-12 19:26:04 +01:00
|
|
|
- .drone/helm/staging-val.yaml
|
2022-03-12 21:32:02 +01:00
|
|
|
values:
|
|
|
|
- "image=dutchellie/proper-website-2:${DRONE_COMMIT_SHA:0:8}"
|
2022-03-12 17:47:01 +01:00
|
|
|
kube_api_server:
|
|
|
|
from_secret: staging_api_server
|
|
|
|
kube_token:
|
|
|
|
from_secret: staging_kube_token
|
2022-03-12 18:00:12 +01:00
|
|
|
kube_certificate:
|
|
|
|
from_secret: staging_kube_certificate
|
|
|
|
kube_service_account: drone-deploy
|
2022-03-12 20:28:47 +01:00
|
|
|
dry_run: false
|
2022-03-12 20:43:21 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
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
|
2022-03-12 21:32:02 +01:00
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
2022-03-12 20:43:21 +01:00
|
|
|
|
|
|
|
- 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
|
2022-03-12 21:32:02 +01:00
|
|
|
values:
|
|
|
|
- "image=dutchellie/proper-website-2:${DRONE_COMMIT_SHA:0:8}"
|
2022-03-12 20:43:21 +01:00
|
|
|
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
|