Skip to content

Custom Fields - Escape : in value #638

@TheDiggster13

Description

@TheDiggster13

I'm attempting to use custom fields to pass an image url through to my release. The URL is in the format:
123456789.dkr.ecr.us-east-1.amazonaws.com/service:IMAGETAG

My Github action invoke looks like:

- name: Create Octopus release 🐙
      uses: OctopusDeploy/create-release-action@v4
      with:
        channel: ${{ steps.config.outputs.channel }}
        git_ref: ${{ (github.ref_type == 'tag' && github.event.repository.default_branch) || (github.head_ref || github.ref) }}
        git_commit: ${{ github.event.pull_request.head.sha || github.sha }}
        project: ${{ inputs.project }}
        release_number: ${{ steps.config.outputs.package_version }}
        release_notes: ${{ (inputs.release_notes != '' && inputs.release_notes) || (github.event.pull_request.head.sha || github.sha) }}
        package_version: ${{ steps.config.outputs.package_version }}
        space: ${{ inputs.space }}
        custom_fields: |
          IMAGE_URL:"${{ inputs.image_manifest_tag }}"
          BUILD_NUMBER:${{ github.run_number }}

When I look at my release in Octopus I can see the IMAGE_URL custom field exists, but the IMAGETAG part of this is cutoff.

Image

Is there a way of escaping the : in the value of the field? I have tried wrapping the value in "" which hasn't worked.

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