Skip to content

deploy action variable values with colon #132

Open
@vaiddas

Description

@vaiddas

Octopus is trimming a variable value passed from deploy action if it contains colon

We are using OctopusDeploy/deploy-release-action@v3 and passing variable name as image whose value is a string and also has colon (:) in it.
something like
variables: |
image: example.azurecr.io/example-repo:tag-2024.09.12

we can see that correct variable value is shown in the GITHUB action pipeline output but when deployment occurs in Octopus Deploy then we see this value change
from:
example.azurecr.io/example-repo:tag-2024.09.12
to
example.azurecr.io/example-repo

so anything after ":" is omitted.

when we paste the complete value ( with colon ) directly in the Octopus Console variables section then it works fine.

Expected behavior
We are expecting the complete value to be passed to the Octopus from GHA deploy action.

Actual behavior
Trimmed value is passed.

My apologies but we are not allowed to share screenshots.

Note:

  1. I verified the variable after enabling
    OctopusPrintVariables True
    OctopusPrintEvaluatedVariables True

  2. when I paste this complete string in Octopus console such as
    example.azurecr.io/example-repo:tag-2024.09.12
    then we don't see any issue but when I use deploy action to pass this variable then we see the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions