-
Notifications
You must be signed in to change notification settings - Fork 2
/
Taskfile.yaml
57 lines (51 loc) · 2 KB
/
Taskfile.yaml
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
# ⚠️ Still experimental and just used for testing; not yet integrated in ci
version: "3"
vars:
IMAGE_REPOSITORY: miracum/recruit
IMAGE_TAG: latest
tasks:
build-all-images:
dir: src/
cmds:
- skaffold build --tag={{ .IMAGE_TAG }}
- docker build -t ghcr.io/miracum/recruit/tester:v1 ../tests/chaos/tester
helm-add-repos:
cmds:
- helm repo add codecentric https://codecentric.github.io/helm-charts
- helm repo add hapifhir https://hapifhir.github.io/hapi-fhir-jpaserver-starter
helm-update-dependencies:
cmds:
- find charts/ ! -path charts/ -maxdepth 1 -type d -exec helm dependency update {} \;
e2e-k8s-prepare:
deps:
- helm-add-repos
cmds:
- kind create cluster
- kubectl create namespace recruit
- |
helm upgrade --install argo-workflows oci://ghcr.io/argoproj/argo-helm/argo-workflows \
--create-namespace \
-n argo-workflows \
-f tests/chaos/argo-workflows-values.yaml \
--version 0.33.2
e2e-k8s:
cmds:
- |
kind load docker-image \
ghcr.io/miracum/recruit/tester:v1 \
ghcr.io/{{ .IMAGE_REPOSITORY }}/query:{{ .IMAGE_TAG }} \
ghcr.io/{{ .IMAGE_REPOSITORY }}/notify:{{ .IMAGE_TAG }} \
ghcr.io/{{ .IMAGE_REPOSITORY }}/list:{{ .IMAGE_TAG }}
- |
helm upgrade --dependency-update --install --create-namespace -n recruit \
--set query.image.repository={{ .IMAGE_REPOSITORY }}/query \
--set query.image.tag={{ .IMAGE_TAG }} \
--set notify.image.repository={{ .IMAGE_REPOSITORY }}/notify \
--set notify.image.tag={{ .IMAGE_TAG }} \
--set list.image.repository={{ .IMAGE_REPOSITORY }}/list \
--set list.image.tag={{ .IMAGE_TAG }} \
-f charts/recruit/values-integrationtest.yaml \
--wait --timeout=15m \
recruit charts/recruit/
- helm test -n recruit recruit
- argo submit tests/integration/argo-workflow.yaml -n recruit --wait --log