2022-03-12 16:22:41 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: default
|
|
|
|
|
|
|
|
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 17:47:01 +01:00
|
|
|
tags: latest
|
|
|
|
|
2022-03-12 18:15:46 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
|
|
|
name: deploy-staging
|
|
|
|
|
2022-03-12 18:18:01 +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 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 17:47:01 +01:00
|
|
|
dry_run: true
|