drone-docker icon indicating copy to clipboard operation
drone-docker copied to clipboard

Support eval tags with enviroments or subcommand

Open Philogag opened this issue 5 months ago • 0 comments

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?

Philogag avatar Jul 21 '25 03:07 Philogag