Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make image match function able to optionally parse version #3923

Open
6543 opened this issue Jul 17, 2024 · 0 comments
Open

Make image match function able to optionally parse version #3923

6543 opened this issue Jul 17, 2024 · 0 comments
Labels
enhancement improve existing features

Comments

@6543
Copy link
Member

6543 commented Jul 17, 2024

make

// MatchImage returns true if the image name matches
// an image in the list. Note the image tag is not used
// in the matching logic.
func MatchImage(from string, to ...string) bool {
from = trimImage(from)
for _, match := range to {
if from == trimImage(match) {
return true
}
}
return false
}

able to also optionally check versions e.g. >= v1.0.0 ...

so we can e.g. add version constrains to

"codeberg.org/woodpecker-plugins/docker-buildx",

...

@6543 6543 added the enhancement improve existing features label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve existing features
Projects
None yet
Development

No branches or pull requests

1 participant