-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstackscli.yml
42 lines (39 loc) · 1.32 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
# Configuration file for setting up the project
framework:
name: dotnet
commands:
- name: dotnet
version: ">= 6.0, < 6.1"
# Pipeline files
pipeline:
# Pipeline files for ADO
- type: azdo
files:
- name: variable
path: build/azDevOps/azure/ci-vars.yml
templates:
- name: variable
path: build/azDevOps/azure/ci-vars.yml
# Pipeline files for GHA
- type: gha
files:
- name: variable
path: .github/workflows/ci.env
templates:
- name: variable
path: .github/workflows/ci.env
# The init stage are things that are required to run before the template is run
init:
operations:
- action: cmd
cmd: dotnet
args: new -i .
desc: Install stacks templates from the repo directory
- action: cmd
cmd: dotnet
args: new stacks-{{ .Project.Framework.Option }} -n {{ .Input.Business.Company }} --domain {{ .Input.Business.Domain }} --cloudProvider {{ .Input.Cloud.Platform }} --cicdProvider {{ .Input.Pipeline }} -o {{ .Project.Directory.WorkingDir }} {{if .Project.Framework.DeploymentMode}} --deploymentMode {{ .Project.Framework.DeploymentMode }} {{end}}
desc: Create a project using the stacks template
- action: cmd
cmd: dotnet
args: new --uninstall .
desc: Remove the temporary template from dotnet