docker / docker/metadata-action

Add label customization/options

Open
#243 0 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/enhancement
Dominant language
TypeScript
Stars
1.1k
Forks
160
Avg merge
4d 17h
Merged PRs (30d)
12

Description

These are probably different requests but here it goes.

  1. Would it be possible to have the same options that we have for images? Something like:
labels: |
	name=my.label,value="my value",enable=true

The one I'm interested in is enable, but I figured it'd make sense to have it structured and not just

labels: |
	my.label="my value",enable=true

but I would be happy with that 🙂

  1. Would it be possible to add expressions to labels? Or some way to add info from the action?
labels: |
	version={{version}
	branch={{branch}}

The same output that we get for steps.meta.outputs.version that automatically has the version no matter what kind of even triggered it would also be nice.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing image-option handling and the label configuration and expression-processing entry points. Compare the requested structured label options and action-derived values with the current configuration behavior; done means both requested label customization and value substitution have defined syntax and working behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.