-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstackscli.yml
66 lines (62 loc) · 2.17 KB
/
stackscli.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
# Configuration file for setting up the project
framework:
name: node
commands:
- name: node
version: ">= 18.13"
# Pipeline files
pipeline:
# Pipeline files for ADO
- type: azdo
files:
- name: build
path: build/azDevOps/azure/deploy-infrastructure.yml
- name: variable
path: build/azDevOps/azure/pipeline-vars.yml
templates:
- name: variable
path: build/azDevOps/azure/pipeline-vars.yml
# Pipeline files for GHA
- type: gha
files:
- name: variable
path: .github/workflows/ci.env
templates:
- name: variable
path: .github/workflows/ci.env
setup:
operations:
- action: cmd
cmd: npx
args: --yes
@ensono-stacks/create-stacks-workspace@latest {{ .Project.Name }}
--dir={{ .Input.Directory.WorkingDir }}
--nxVersion={{ .Project.Framework.Version }}
--preset={{ .Project.Framework.Option }}
--business.company={{ .Input.Business.Company }}
--business.domain={{ .Input.Business.Domain }}
--business.component={{ .Input.Business.Component }}
--cloud.platform={{ .Input.Cloud.Platform }}
--cloud.region={{ .Project.Cloud.Region }}
--cloud.group={{ .Project.Cloud.ResourceGroup }}
--domain.internal={{ .Input.Network.Base.Domain.Internal }}
--domain.external={{ .Input.Network.Base.Domain.External }}
--pipeline={{ .Input.Pipeline }}
--terraform.group={{ .Input.Terraform.Backend.Group }}
--terraform.storage={{ .Input.Terraform.Backend.Storage }}
--terraform.container={{ .Input.Terraform.Backend.Container }}
--vcs.type={{ .Project.SourceControl.Type }}
--vcs.url={{ .Project.SourceControl.URL }}
--overwrite
--skipGit
--no-interactive
desc: Create "stacks-nx" Workspace
applyProperties: true
- action: cmd
cmd: node
args: "{{ .Project.Directory.TempDir }}/tools/configure-pipeline.js
--tmpDir={{ .Project.Directory.TempDir }}
--targetDir={{ .Project.Directory.WorkingDir }}
--platform={{ .Input.Cloud.Platform }}
--pipeline={{ .Input.Pipeline }}"
desc: Scaffold Pipeline