Comments (8)
@strophy Ok great :)
from metadata-action.
@strophy Thanks for your feedback, yes that's a bug that affects match
, semver
and schedule
types.
from metadata-action.
Ok I will create a new PR to allow to explicitly override a global suffix/prefix.
from metadata-action.
@strophy Can you make a test with crazy-max/ghaction-docker-meta@override-flavor
please?
from metadata-action.
@strophy Can you make a test with crazy-max/ghaction-docker-meta@fix-prefix-suffix
please?
from metadata-action.
Thanks for the quick action on this @crazy-max I really appreciate it 🥇
The suffix is now being generated correctly. I realize this might be more of a feature request, but I would however prefer that an explicitly specified suffix
in a tag attribute declaration would override the flavor
argument. For example below (my output from running from your fix-prefix-suffix
branch), the final tag should not have the -tag
suffix because suffix=
is explicitly specified in the tag attribute. Log output:
Run crazy-max/ghaction-docker-meta@fix-prefix-suffix
with:
images: strophy/drive
tags: type=match,pattern=v(\d+),group=1
type=match,pattern=v(\d+.\d+),group=1
type=match,pattern=v(\d+.\d+.\d+),group=1
type=match,pattern=v(.*),group=1,suffix=,enable=true
flavor: latest=false
suffix=-dev
github-token: ***
Context info
eventName: release
sha: 0ce1f078b1fac7f85874a77a728cc689fda86336
ref: refs/tags/v0.19.36-dev.4
workflow: tests
action: crazy-maxghaction-docker-meta
actor: strophy
runNumber: 117
runId: 726888199
Processing tags input
type=match,pattern=v(\d+),group=1,value=,enable=true,priority=800,prefix=,suffix=
type=match,pattern=v(\d+.\d+),group=1,value=,enable=true,priority=800,prefix=,suffix=
type=match,pattern=v(\d+.\d+.\d+),group=1,value=,enable=true,priority=800,prefix=,suffix=
type=match,pattern=v(.*),group=1,suffix=,enable=true,value=,priority=800,prefix=
Processing flavor input
latest=false
prefix=
suffix=-dev
Docker image version
0-dev
Docker tags
strophy/drive:0-dev
strophy/drive:0.19-dev
strophy/drive:0.19.36-dev
strophy/drive:0.19.36-dev.4-dev // should be: strophy/drive:0.19.36-dev.4
Does this make sense? Or is there another way to achieve this behavior? My workflow code is here, thanks for your help!
from metadata-action.
the final tag should not have the
-tag
suffix becausesuffix=
is explicitly specified in the tag attribute.
Yes indeed. Let me check this.
from metadata-action.
This looks perfect to me:
Run crazy-max/ghaction-docker-meta@override-flavor
with:
images: strophy/drive
tags: type=match,pattern=v(\d+),group=1
type=match,pattern=v(\d+.\d+),group=1
type=match,pattern=v(\d+.\d+.\d+),group=1
type=match,pattern=v(.*),group=1,suffix=,enable=true
flavor: latest=false
suffix=-dev
github-token: ***
Context info
eventName: release
sha: aa00832302bf3aa17630e0190423597fcb37cb11
ref: refs/tags/v0.19.38-dev.1
workflow: tests
action: crazy-maxghaction-docker-meta
actor: strophy
runNumber: 119
runId: 727007388
Processing tags input
type=match,pattern=v(\d+),group=1,value=,enable=true,priority=800
type=match,pattern=v(\d+.\d+),group=1,value=,enable=true,priority=800
type=match,pattern=v(\d+.\d+.\d+),group=1,value=,enable=true,priority=800
type=match,pattern=v(.*),group=1,suffix=,enable=true,value=,priority=800
Processing flavor input
latest=false
prefix=
suffix=-dev
Docker image version
0-dev
Docker tags
strophy/drive:0-dev
strophy/drive:0.19-dev
strophy/drive:0.19.38-dev
strophy/drive:0.19.38-dev.1
from metadata-action.
Related Issues (20)
- Metadata action does not properly distinguish bake matrix targets HOT 1
- IP address is not permitted to access this resource HOT 3
- Disable `main` tag when `latest` is enabled HOT 2
- Secrets exposed in some action output HOT 1
- org.opencontainers.image.source is missing from the annotations section of the manifests HOT 2
- Custom annotations HOT 1
- Action fails: Cannot find detached HEAD ref in "grafted, HEAD, tag: x.x.x" HOT 10
- Warning: No Docker image version has been generated. Check tags input. HOT 1
- Missing latest tag on type=match HOT 1
- Images cannot be empty as documentation suggests HOT 1
- v5.5.0 Broke docker/bake-action with docker-metadata-action HOT 4
- #370 breaks GitHub Actions build example HOT 3
- semver tag : allow outputing build information (part after plus) HOT 4
- Generating tags for multiple bake targets HOT 3
- `SOURCE_DATE_EPOCH` is not respected HOT 1
- refs with uppercase characters trigger an error in buildx (branch names with uppercase characters) HOT 1
- Automatically Tag Latest Official Version with 'latest' in Docker Repository Based on Semantic Versioning HOT 2
- Commit SHA in pull request event is incorrect. HOT 1
- Add an annotation/label of the github actions job url that created the image HOT 1
- Strip the prefix `v` from tags created on release event
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metadata-action.