Filter for non production keywords in tags

This commit is contained in:
2025-04-18 11:02:26 +02:00
parent 223aec356f
commit 543edd3c66
3 changed files with 12 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ Get the provided `compose.yaml`.
docker compose up -d
```
All images are exposed to `http://0.0.0.0:8000/all` in JSON format.
If you want to get only images needing update, look at `http://0.0.0.0:8000/updates`.
# Requirements
This program needs [regctl](https://github.com/regclient/regclient.git).
It is shipped with container image by default, however you'll need to install it by yourself if running script directly.

View File

@@ -3,6 +3,7 @@ name: dockup
services:
dockup:
image: ramiuslr/dockup:latest # You should set a fixed tag
# build: . # Use this for local development setup
container_name: dockup
restart: always
ports:

7
dockup
View File

@@ -123,6 +123,13 @@ def get_remote_tags(images):
if local_suffix and not tag.endswith(local_suffix):
continue
# Skip non-production versions
if any(
bad_keyword in tag.lower()
for bad_keyword in ["test", "rc", "alpha"]
):
continue
# Validate version structure
if is_valid_semver(
tag.split("-")[0]