update-coder-template/action.yaml
2023-06-07 14:31:20 +03:00

41 lines
1.4 KiB
YAML

name: Update Coder Template
description: An action to deploy changes to your coder template automatically
author: "Muhammad Atif Ali <matifali@live.com>"
branding:
icon: arrow-up-circle
color: green
# specify the inputs that this action accepts
inputs:
CODER_TEMPLATE_NAME:
description: "Template name"
required: true
CODER_ACCESS_URL:
description: "Coder access URL (e.g. https://coder.example.com)"
required: true
CODER_SESSION_TOKEN:
description: "Coder session token"
required: true
CODER_TEMPLATE_DIR:
description: "Template directory name (path to the directory containing the main.tf file default: TEMPLATE_NAME)"
required: false
CODER_TEMPLATE_VERSION:
description: "Template version"
required: false
CODER_TEMPLATE_ACTIVATE:
description: "Makes the current template active"
required: false
default: "true"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
runs:
using: "docker"
image: "Dockerfile"
env:
CODER_SESSION_TOKEN: ${{ inputs.CODER_SESSION_TOKEN }}
CODER_ACCESS_URL: ${{ inputs.CODER_ACCESS_URL }}
CODER_TEMPLATE_NAME: ${{ inputs.CODER_TEMPLATE_NAME }}
CODER_TEMPLATE_DIR: ${{ inputs.CODER_TEMPLATE_DIR }}
CODER_TEMPLATE_VERSION: ${{ inputs.CODER_TEMPLATE_VERSION }}
CODER_TEMPLATE_ACTIVATE: ${{ inputs.CODER_TEMPLATE_ACTIVATE }}