upadating variable to be more flexible in the future

This commit is contained in:
mahines 2021-12-16 07:55:44 -05:00
Родитель 9d5278917d
Коммит f395343f47
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -40,10 +40,10 @@ inputs:
description: 'create or destroy'
required: false
default: 'create'
USE_PULUMI:
description: 'use pulumi instead of terraform'
IAC_TYPE:
description: 'IAC tool, Possible choices: [ pulumi, terraform ]'
required: false
default: 'false'
default: 'terraform'
CREATE_ACR:
description: 'create ACR with cluster name'
default: 'false'
@ -67,5 +67,5 @@ runs:
- ${{ inputs.STORAGE_ACCESS_KEY }}
- ${{ inputs.ACTION_TYPE }}
- ${{ inputs.CREATE_ACR }}
- ${{ inputs.USE_PULUMI }}
- ${{ inputs.IAC_TYPE }}
- ${{ inputs.PULUMI_ACCESS_TOKEN }}

Просмотреть файл

@ -9,7 +9,7 @@ export ARM_TENANT_ID=$INPUT_ARM_TENANT_ID
export STORAGE_ACCOUNT_NAME=$INPUT_STORAGE_ACCOUNT_NAME
export STORAGE_CONTAINER_NAME=$INPUT_STORAGE_CONTAINER_NAME
export STORAGE_ACCESS_KEY=$INPUT_STORAGE_ACCESS_KEY
export USE_PULUMI=$INPUT_USE_PULUMI
export IAC_TYPE=$INPUT_IAC_TYPE
export TF_VAR_resource_group_name=$INPUT_RESOURCE_GROUP_NAME
export TF_VAR_cluster_name=$INPUT_CLUSTER_NAME
@ -24,7 +24,7 @@ echo "*******************"
cd /action/$INPUT_CLUSTER_SIZE
# Using Pulumi
if [ $INPUT_USE_PULUMI = "true" ]; then
if [ $INPUT_IAC_TYPE = "pulumi" ]; then
echo "Using Pulumi"
/pulumi/bin/pulumi stack select dev --create