Enable Flag in Raw Tag does not work as expected
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- docker, github-actions, typescript
Research direction
Start with the GitHub Actions workflow YAML shown in the issue and trace how the raw tag's enable value is processed. Compare the expected and actual workflow logs, focusing on the false setting. Done means a raw tag with enable=false is absent from the Docker tags output.
Written by the indexing model from the issue text.
Description
Contributing guidelines
- I've read the contributing guidelines and wholeheartedly agree
I've found a bug, and:
- The documentation does not mention anything about my problem
- There are no open or closed issues that are related to my problem
Description
When using a raw tag with the enable flag, the tag is still in the metadata output when enable is set to false.
Expected behaviour
Run docker/metadata-action@v5
Context info
Processing images input
Processing tags input
type=semver,pattern={{raw}},value=v0.0.1+test,enable=true,priority=900
type=raw,value=latest,enable=false,priority=200
Processing flavor input
Docker image version
Docker tags
ghcr.io/{org}/{image}:v0.0.1-test
Docker labels
Annotations
JSON output
Bake file definition (tags)
Bake file definition (labels)
Bake file definition (annotations)
Actual behaviour
Run docker/metadata-action@v5
Context info
Processing images input
Processing tags input
type=semver,pattern={{raw}},value=v0.0.1+test,enable=true,priority=900
type=raw,value=latest,enable=false,priority=200
Processing flavor input
Docker image version
Docker tags
ghcr.io/{org}/{image}:v0.0.1-test
ghcr.io/{org}/{image}:latest
Docker labels
Annotations
JSON output
Bake file definition (tags)
Bake file definition (labels)
Bake file definition (annotations)
Repository URL
No response
Workflow run URL
No response
YAML workflow
- name: Docker Meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ needs.set-workflow-vars.outputs.image-name }}
tags: |
type=semver,pattern={{raw}},value=${{ needs.set-workflow-vars.outputs.version }}
type=raw,value=latest,enable=${{ inputs.is-latest }} # This input is typed as a boolean in the callable workflow, maybe that's it?
Workflow logs
Run docker/metadata-action@v5
Context info
Processing images input
Processing tags input
type=semver,pattern={{raw}},value=v0.0.1+test,enable=true,priority=900
type=raw,value=latest,enable=false,priority=200
Processing flavor input
Docker image version
Docker tags
ghcr.io/{org}/{image}:v0.0.1-test
ghcr.io/{org}/{image}:latest
Docker labels
Annotations
JSON output
Bake file definition (tags)
Bake file definition (labels)
Bake file definition (annotations)
BuildKit logs
No response
Additional info
No response
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 160
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/metadata-action
-
kind/enhancement status/triage
Difficulty 3/5 1-2 days Newbie friendliness 65/100
docker/metadata-action#709 ·
-
kind/enhancement status/triage
Difficulty 3/5 1-2 days Newbie friendliness 64/100
docker/metadata-action#593 · 1 comment ·
-
kind/enhancement status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
docker/metadata-action#592 · 1 comment · 1 reaction ·
-
kind/enhancement status/triage
Difficulty 5/5 Over a week Newbie friendliness 35/100
docker/metadata-action#591 ·
-
kind/enhancement status/triage
Difficulty 3/5 1-2 days Newbie friendliness 48/100
docker/metadata-action#585 ·
All issues in docker/metadata-action
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·