Filter for non production keywords in tags
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
7
dockup
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user