-
Notifications
You must be signed in to change notification settings - Fork 0
/
usher.yml
67 lines (59 loc) · 1.8 KB
/
usher.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
65
66
67
version: '2'
vars:
registry: docker-registry.dun.fh
base_service_name: eagle-scout
include:
- from: git+ssh://git@github.com:findmypast/usher_shared_tasks.git
name: shared_tasks as global
import:
- docker
- deploy_k8s
- domesday
tasks:
build:
description: Build eaglescout
do: global.docker.create_image
service_folder: .
service_name: <%=base_service_name%>
push:
description: Push the eaglescout image to the Docker registry
do: global.docker.push_image
service_name: <%=base_service_name%>
test:
description: Run eaglescout unit tests
do: global.docker.compose_run
service_folder: ./docker-compose
compose_filename: docker-compose-test.yml
service_name: test
env:
- IMAGE=<%=registry%>/findmypast/<%=base_service_name%>:<%=version%>
publish:
description: Publish eaglescout CLI to internal NPM
do: global.docker.compose_run
service_folder: ./docker-compose
compose_filename: docker-compose-publish.yml
service_name: publish
env:
- IMAGE=<%=registry%>/findmypast/<%=base_service_name%>:<%=version%>
deploy_integration:
do: sequence
service_name: <%=base_service_name%>
environment: integration
actions:
- do: shell
command: npm i fs-extra
- do: create_secret_paths_file
secretPathsLocation: ./helm/secret-paths.json
- do: global.deploy_k8s.deploy
description: Deploy to K8s
helm_overrides:
environment: <%=environment%>
image.tag: <%=version%>
initContainer.k8sAuthPath: staging
sidecarInjection: 'false'
create_secret_paths_file:
do: shell
command: node config/secret-path-generator.js
env:
- ENVIRONMENT=<%=environment%>
- SECRETS_FILEPATH=<%=secretPathsLocation%>