mirror of
https://github.com/matifali/update-coder-template.git
synced 2025-11-18 08:01:13 +08:00
Adicionar suporte para tag de provisionador na ação de atualização do template
This commit is contained in:
parent
c5dfa097d7
commit
c46d907ec8
2 changed files with 10 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ inputs:
|
|||
description: "Marks the current template version as active"
|
||||
required: false
|
||||
default: "true"
|
||||
provisioner_tag:
|
||||
description: "Add provisioner tag to the template, useful for identifying the template version in the Coder UI"
|
||||
required: false
|
||||
default: "-"
|
||||
message:
|
||||
description: "update message"
|
||||
required: false
|
||||
|
|
@ -54,3 +58,4 @@ runs:
|
|||
CODER_TEMPLATE_ACTIVATE: ${{ inputs.activate }}
|
||||
CODER_TEMPLATE_MESSAGE: ${{ inputs.message }}
|
||||
CODER_TEMPLATE_DRY_RUN: ${{ inputs.dry_run }}
|
||||
CODER_PROVISIONER_TAG: ${{ inputs.provisioner_tag }}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@ if [ -n "${CODER_TEMPLATE_MESSAGE}" ]; then
|
|||
push_command+=" --message \"${CODER_TEMPLATE_MESSAGE}\""
|
||||
fi
|
||||
|
||||
# Add provisioner tag to the push command if specified
|
||||
if [ -n "${CODER_PROVISIONER_TAG}" ]; then
|
||||
push_command+=" --provisioner-tag \"${CODER_PROVISIONER_TAG}\""
|
||||
fi
|
||||
|
||||
# Add version to the push command if specified
|
||||
if [ -n "${CODER_TEMPLATE_VERSION_NAME}" ]; then
|
||||
push_command+=" --name ${CODER_TEMPLATE_VERSION_NAME}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue