Keep your tekton task and pipleine images updated
waashup is a simple shell script, checking if your image in your tekton tasks that has a sha256 is kept updated.
It uses skopeo to inspect the remote registry for a new Digest.
It will try to optimize and only fetch once.
It output it in a simple make format with :
file:LINE: message
so you can plug this in your EDITOR or anything that understand that format
Copy the shell script somewhere
- Bash4
- Skopeo
You simply need to pass the yaml files as argument.
It will try to detect for linux/amd64 platforms by default.
If you want another platform/os you can set the env variable TARGET_OS
TARGET_ARCH
or set the -o
(for a TARGET_OS
) or -a
(for a TARGET_ARCH
)
to redefine them.
It will only print the images that are not up to date. Unless you use the
option -i
and it will do the replacement in place.
- Use python-yaml to go to avoid shell quoting issues and better image detection
- Handle tags?
- may be buggy with some characters due of shell quoting issues.
Chmouel Boudjnah
- Fediverse - <@chmouel@chmouel.com>
- Twitter - <@chmouel>
- Blog - <https://blog.chmouel.com>