Skip to content

Commit

Permalink
Update stack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul authored Mar 14, 2022
1 parent 5672798 commit 8662884
Showing 1 changed file with 58 additions and 35 deletions.
93 changes: 58 additions & 35 deletions .github/stacks/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,30 @@ description: 'The Stack provides all boilerplate app and deployment code of the
branding:
icon: 'cloud'
color: 'blue'

inputs:
- name: AZURE_CLIENT_ID
description: Enter your Azure AD app client ID. To know more about acquiring this key, read https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure. This will be stored as a secret
is-secret: true
required: true

- name: AZURE_TENANT_ID
description: Enter your Azure AD app teanant ID. To know more about acquiring this key, read https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure. This will be stored as a secret
is-secret: true
required: true

- name: AZURE_CREDENTIALS
description: Enter the azure login token. The tokes is based on Azure service principal. Read readme.md to discover about generating the token using Azure CLI.
- name: AZURE_SUBSCRIPTION_ID
description: Enter your Azure subscription ID. To know more about acquiring this key, read https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure. This will be stored as a secret
is-secret: true
required: true

- name: AZURE_AKS_RESOURCE_GROUP
description: Enter the AKS resource group in which this cluster is created.
description: Enter the AKS resource group in which this cluster is created
is-secret: true
required: true

- name: AZURE_AKS_NAME
description: Enter the AKS service name.
description: Enter the AKS service name
is-secret: true
required: true

Expand All @@ -29,47 +38,61 @@ inputs:
is-secret: true
required: true

- name: MONGODB_CONNECTION_STRING
description: Enter the hosted Mongo Db connection string.
is-secret: true
required: true

- name: ACR_NAME
description: Enter Azure container registry name.
description: Enter Azure container registry name
is-secret: true
required: true

- name: ACR_RESOURCE_GROUP
description: Enter Azure container registry resource group.
description: Enter Azure container registry resource group
is-secret: true
required: true



- name: DNS_NAME
description: DNS Name
is-secret: true
required: true

- name: AZURE_LOCATION
description: A region 'Name', where the new resources will be created. Execute the command 'az account list-locations -o table' to know more about other valid regions.
default: "centralindia"
is-secret: true
required: true

- name: MONGODB_CONNECTION_STRING
description: Enter the hosted Mongo Db connection string.
is-secret: true
required: true

configs:
repo-metadata:
parameters:
description: 'Azure service principal'
secrets:
- name: AZURE_CREDENTIALS
value: ${{inputs.AZURE_CREDENTIALS}}

- name: AZURE_AKS_RESOURCE_GROUP
value: ${{inputs.AZURE_AKS_RESOURCE_GROUP}}

- name: AZURE_AKS_NAME
value: ${{inputs.AZURE_AKS_NAME}}

- name: AKS_KUBECONFIG
value: ${{inputs.AKS_KUBECONFIG}}

- name: MONGODB_CONNECTION_STRING
value: ${{inputs.MONGODB_CONNECTION_STRING}}

- name: ACR_NAME
value: ${{inputs.ACR_NAME}}

-name: ACR_RESOURCE_GROUP
value: ${{inputs.ACR_RESOURCE_GROUP}}
- name: AZURE_CLIENT_ID
value: ${{inputs.AZURE_CLIENT_ID}}
- name: AZURE_TENANT_ID
value: ${{inputs.AZURE_TENANT_ID}}
- name: AZURE_SUBSCRIPTION_ID
value: ${{inputs.AZURE_SUBSCRIPTION_ID}}
- name: ACR_NAME
value: ${{inputs.ACR_NAME}}
- name: ACR_RESOURCE_GROUP
value: ${{inputs.ACR_RESOURCE_GROUP}}
- name: AZURE_LOCATION
value: ${{inputs.AZURE_LOCATION}}
- name: AZURE_AKS_RESOURCE_GROUP
value: ${{inputs.AZURE_AKS_RESOURCE_GROUP}}
- name: AZURE_AKS_NAME
value: ${{inputs.AZURE_AKS_NAME}}
- name: AKS_KUBECONFIG
value: ${{inputs.AKS_KUBECONFIG}}
- name: MONGODB_CONNECTION_STRING
value: ${{inputs.MONGODB_CONNECTION_STRING}}
- name: DNS_NAME
value: ${{inputs.DNS_NAME}}
- name: AZURE_LOCATION
value: ${{inputs.AZURE_LOCATION}}

topics:
- NodeJS
Expand Down

0 comments on commit 8662884

Please sign in to comment.