-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
64 lines (59 loc) · 1.55 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
kind: pipeline
type: kubernetes
name: deploy tag
trigger:
event:
- tag
branch:
- main
steps:
- name: checkout
image: quay.io/ukhomeofficedigital/hocs-helm-kubectl:1.1.1
commands:
- git fetch --tags
- git checkout ${DRONE_TAG}
- git submodule update --init --recursive
- &deploy
name: cs-dev-audit
image: quay.io/ukhomeofficedigital/hocs-helm-kubectl:1.1.1
environment:
CHART_NAME: hocs-audit
CHART_VERSION: ^6.1.1
KUBE_CLUSTER: acp-notprod
KUBE_NAMESPACE: cs-dev
KUBE_SERVER: https://kube-api-notprod.notprod.acp.homeoffice.gov.uk
KUBE_TOKEN:
from_secret: cs_notprod
VERSION: ${DRONE_TAG}
commands:
- ./ci/helm/helm-chart-deploy.sh --values ./helm/hocs-audit.yaml
depends_on:
- checkout
- <<: *deploy
name: wcs-dev-audit
environment:
KUBE_NAMESPACE: wcs-dev
commands:
- ./ci/helm/helm-chart-deploy.sh --values ./helm/hocs-audit.yaml
depends_on:
- cs-dev-audit
- <<: *deploy
name: cs-dev-extracts
environment:
CHART_NAME: hocs-extracts
CHART_VERSION: ^6.2.0
KUBE_NAMESPACE: cs-dev
commands:
- ./ci/helm/helm-chart-deploy.sh --values ./helm/hocs-extracts.yaml
depends_on:
- checkout
- <<: *deploy
name: wcs-dev-extracts
environment:
CHART_NAME: hocs-extracts
KUBE_NAMESPACE: wcs-dev
commands:
- ./ci/helm/helm-chart-deploy.sh --values ./helm/hocs-extracts.yaml --values ./helm/hocs-extracts-wcs.yaml
depends_on:
- cs-dev-extracts