-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from amido/feature/stackscli-support
Added Stacks-CLI support
- Loading branch information
Showing
4 changed files
with
186 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
variables: | ||
- name: region | ||
value: {{.Project.Cloud.Region}} | ||
- name: company | ||
value: {{.Input.Business.Company}} | ||
- name: project | ||
value: {{.Project.Name}} | ||
- name: domain | ||
value: {{.Input.Business.Domain}} | ||
- name: self_repo | ||
value: {{.Project.Name}} | ||
|
||
# Terraform Configuration | ||
|
||
# State configuration | ||
|
||
# Stacks operates Terraform states based on workspaces **IT IS VERY IMPORTANT** that you ensure a unique name for each application definition | ||
# Furthermore **IT IS VERY IMPORTANT** that you change the name of a workspace for each deployment stage | ||
# there are some best practices around this if you are going for feature based environments | ||
# avoid running anything past dev that is not on master | ||
- name: tf_state_rg | ||
value: {{.Input.Terraform.Backend.Group}} | ||
- name: tf_state_storage | ||
value: {{.Input.Terraform.Backend.Storage}} | ||
- name: tf_state_container | ||
value: {{.Input.Terraform.Backend.Container}} | ||
- name: tf_state_key | ||
value: $(self-generic-name) | ||
|
||
# Domain names | ||
- name: base_domain_nonprod | ||
value: nonprod.{{.Input.Network.Base.Domain.External}} | ||
- name: base_domain_internal_nonprod | ||
value: nonprod.{{.Input.Network.Base.Domain.Internal}} | ||
- name: base_domain_prod | ||
value: prod.{{.Input.Network.Base.Domain.External}} | ||
- name: base_domain_internal_prod | ||
value: prod.{{.Input.Network.Base.Domain.Internal}} | ||
|
||
# DNS configuration | ||
- name: dns_zone_resource_group | ||
value: | ||
- name: create_dns_zone | ||
value: false | ||
|
||
# GitHub infomration | ||
- name: create_release | ||
value: false | ||
- name: github_release_service_connection | ||
value: | ||
- name: github_org | ||
value: $(company) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
variables: | ||
- name: region | ||
value: westeurope | ||
- name: company | ||
value: amido | ||
- name: project | ||
value: stacks | ||
- name: domain | ||
value: core | ||
- name: self_repo | ||
value: stacks-infrastructure-aks | ||
|
||
# Terraform configuration | ||
- name: tf_state_rg | ||
value: Stacks-Ancillary-Resources | ||
- name: tf_state_storage | ||
value: amidostackstfstate | ||
- name: tf_state_container | ||
value: tfstate | ||
- name: tf_state_key | ||
value: core-sharedservices | ||
|
||
# Domain names | ||
- name: base_domain_nonprod | ||
value: nonprod.amidostacks.com | ||
- name: base_domain_internal_nonprod | ||
value: nonprod.amidostacks.internal | ||
- name: base_domain_prod | ||
value: prod.amidostacks.com | ||
- name: base_domain_internal_prod | ||
value: prod.amidostacks.internal | ||
|
||
# DNS configuration | ||
- name: create_dns_zone | ||
value: false | ||
- name: dns_resource_group | ||
value: Stacks-Ancillary-Resources | ||
|
||
# GitHub infomration | ||
- name: create_release | ||
value: true | ||
- name: github_release_service_connection | ||
value: GitHubReleases | ||
- name: github_org | ||
value: $(company) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pipeline: | ||
- type: azdo | ||
files: | ||
- name: build | ||
path: build/azDevOps/azure/azure-pipeline-infrastructure-aks.yml | ||
- name: variable | ||
path: build/azDevOps/azure/azuredevops-vars.yml | ||
templates: | ||
- name: variable | ||
path: build/azDevOps/azure/azuredevops-vars-template.yml | ||
|
||
setup: | ||
operations: | ||
- action: copy |