-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.yml
57 lines (53 loc) · 1.42 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
---
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
image: quay.io/ukhomeofficedigital/hocs-helm-kubectl:1.1.1
environment:
CHART_NAME: hocs-casework
CHART_VERSION: ^4.0.0
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-casework.yaml
depends_on:
- checkout
- <<: *deploy
name: wcs-dev
environment:
KUBE_NAMESPACE: wcs-dev
depends_on:
- cs-dev
- name: cs-dev-reporting
image: quay.io/ukhomeofficedigital/hocs-helm-kubectl:1.1.1
environment:
CHART_NAME: hocs-casework-reporting
CHART_VERSION: ^1.0.0
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-casework-reporting.yaml
depends_on:
- checkout