Skip to content

Support eval tags with enviroments or subcommand #493

@Philogag

Description

@Philogag

I hope to build using the formatted $DRONE_BUILD_CREATED in tag, such as 20060102-1504-linux-amd64
But it seems that it cannot expaned correctly, and it failed on tag rename

settings:
  tag: $(date +'%Y%m%d-%H%M' -d @${DRONE_BUILD_CREATED})-linux-arm64
Error parsing reference: "git.******.com/******/******:$(date +'%Y%m%d-%H%M' -d @1753065997)-linux-arm64" is not a valid repository/

Or

settings:
  tag: "{{ date \"20060102-1504\" ${DRONE_BUILD_CREATED} }}-linux-arm64"
Error parsing reference: "git.******.com/******/******:{{ date \"20060102-1504\" 1753066782 }}-linux-arm64" is not a valid repository/tag: invalid reference format

Is there any way to implement it via pipeline yaml config or add support in this plugin?

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