-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
58 lines (52 loc) · 1.16 KB
/
config.yml
File metadata and controls
58 lines (52 loc) · 1.16 KB
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
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
orbs:
terraform: circleci/terraform@3.2.0
jobs:
terraform-plan:
docker:
- image: cimg/azure:2023.03
steps:
- checkout
- terraform/init:
path: terraform
- terraform/plan:
path: terraform
terraform-apply:
docker:
- image: cimg/azure:2023.03
steps:
- checkout
- terraform/init:
path: terraform
- terraform/apply:
path: terraform
terraform-destroy-foundry:
docker:
- image: cimg/azure:2023.03
steps:
- checkout
- terraform/init:
path: terraform
- run: rm terraform/foundry.tf
- terraform/apply:
path: terraform
workflows:
deploy-foundry:
jobs:
- terraform-plan
- hold:
type: approval
requires:
- terraform-plan
- terraform-apply:
requires:
- hold
destroy-foundry:
jobs:
- hold:
type: approval
- terraform-destroy-foundry:
requires:
- hold