Comments (9)
I'm still on vacation, but could probably create a new release next week.
from dregsy.
released with 0.4.3
just now
from dregsy.
How about using regex: 14\.(1[5-9]|[2-9][0-9])\.[0-9]+-(alpine|buster)
for the second expression? This should catch everything >= 14.15.x? Note the added +
to catch multi-digit patch levels.
BTW, semver tag filters will (probably) not work with these kind of tags, since the lib used for this expects clean semver strings, and at most tolerates a v
at the start. We may have to look into removing prefixes/suffixes such as architectures and platforms to improve on this.
I double checked and it turns out that the blang semver lib does accept suffixes as found in your use case, as long as the string starts with a full major.minor.patch semver. But still won't help in this particular case, so the suggested regex above still stands.
from dregsy.
An idea for improvement: If we introduce a tag filter prune:
, which is a regex that gets applied last on the result of tag filtering, then your use case could be written like this:
tags:
- semver: >=12.19.x || >=14.15.x
- prune: .+-(alpine|buster)
from dregsy.
Oh, this looks really neat and looks exactly what I need.
One suggestion: Could it be named only
insteead of prune
? Makes it more explicit what is being done with that filter. On the first sight it reads like all images which apply to .+-(alpine|buster)
are being removed from the result set.
Do you need help in reviewing the https://github.com/xelalexv/dregsy/compare/issue72 branch?
from dregsy.
I wasn't sure myself about prune
, I agree that it may be a bit misleading. How about keep
?
from dregsy.
keep
also sounds like a really good option, even better than only
from dregsy.
implemented with PR #77
from dregsy.
Thanks a lot @xelalexv !
Is there an ETA on a new release?
from dregsy.
Related Issues (20)
- Publish binaries as part of the release HOT 2
- Regular expression does not work if the name contains the symbol '_' HOT 9
- Make dregsy crash when the registry is unreachable HOT 4
- Allow use of IRSA for uses of dregsy in a Kubernetes (Cron)Job HOT 2
- Add option to specify destination tag
- Failing to sync between artifactory and ecr HOT 8
- support multiple destination path HOT 7
- question about the `keep` keyword HOT 9
- dregsy stopped working sometimes by giving "exec format error" HOT 6
- Artifacts migration between two internal Nexus Registry HOT 2
- Arch Issue with Image syncing HOT 10
- option to pass registry auth token using k8s secret HOT 5
- GCP auth per target and source HOT 2
- [feat req/debate] adding support for image digests with the skopeo relay HOT 8
- exit status 1 when pushing to GAR HOT 3
- platform architecture destination tag labeling HOT 1
- 1 to many target mapping? HOT 1
- Split config and credentials/secrets HOT 2
- add latest count limit to tag pruning HOT 1
- automatic restart on config file change HOT 2
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 dregsy.