-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtaskctl.yaml
67 lines (59 loc) · 1.4 KB
/
taskctl.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
58
59
60
61
62
63
64
65
66
67
# Import contexts and tasks for Taskctl
import:
- ./build/taskctl/contexts.yaml
- ./build/taskctl/tasks.yaml
watchers:
lint:
watch:
- '*.yml'
events: [create, write]
task: lint:yaml
pipelines:
setup:
- task: buildnumber
lint:
- task: lint:yaml
- task: lint:terraform:format
depends_on: lint:yaml
- task: lint:terraform:validate
depends_on: lint:terraform:format
# Pipeline to perform the build of the project
build:
- pipeline: lint
- task: test
- task: build:functional_tests
depends_on:
- test
- task: build:container
depends_on:
- test
variables:
IMAGE_NAME: $env:DOCKER_IMAGE_NAME
# Pipeline to ensure that the infrastructure is valid
infrastructure:
- task: infra:init
- task: infra:plan
depends_on: infra:init
- task: infra:apply
depends_on: infra:plan
# Functional tests
functional_tests:
- task: infra:init
- task: deploy:templater
depends_on: infra:init
- task: deploy:functional_tests
depends_on: deploy:templater
# Deploy pipeline
deploy:
- task: infra:init
- task: deploy:templater
depends_on: infra:init
- task: deploy:helm
depends_on: deploy:templater
# Deploy pipeline
deploy_aca:
- task: infra:init
- task: infra:plan
depends_on: infra:init
- task: infra:apply
depends_on: infra:plan