upadating variable to be more flexible in the future
This commit is contained in:
Родитель
9d5278917d
Коммит
f395343f47
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче