veertuinc / gitlab-runner

MIT License
16 stars 3 forks source link

Support variable replacement inside ANKA_TEMPLATE_UUID and ANKA_TAG_NAME variables #13

Closed arifken closed 2 years ago

arifken commented 3 years ago

As a developer, in my gitlab-ci.yml file, I would like to use other variables inside my anka variables.

Given the following configuration:

variables:
    ANKA_TEMPLATE_UUID: "$DEFAULT_ANKA_TEMPLATE_UUID"
    ANKA_TAG_NAME: "$DEFAULT_ANKA_TAG_NAME"

Expected: ANKA_TEMPLATE_UUID should contain the same value as the DEFAULT_ANKA_TEMPLATE_UUID variable Actual: ANKA_TEMPLATE_UUID contains the string literal $DEFAULT_ANKA_TEMPLATE_UUID (not the actual variable)

According to @NorseGaud the running theory is that this needs to use Expand vs Get

NorseGaud commented 2 years ago

https://github.com/veertuinc/gitlab-runner/releases/tag/v1.5.0