Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy action variable values with colon #132

Open
vaiddas opened this issue Sep 12, 2024 · 0 comments
Open

deploy action variable values with colon #132

vaiddas opened this issue Sep 12, 2024 · 0 comments

Comments

@vaiddas
Copy link

vaiddas commented Sep 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant