Repo korrigiert in build-script

This commit is contained in:
Jesko Anschütz 2025-05-06 21:52:09 +02:00
parent c2c424036a
commit 934b609947

View file

@ -1,11 +1,12 @@
#!/bin/bash #!/bin/bash
docker build -t git.az-it.net/az/oiliversum-platzierungstool:latest . && docker push git.az-it.net/az/oiliversum-platzierungstool:latest
#!/bin/bash
# Repository-Name # Repository-Name
REPO="git.az-it.net/az/linuxmuster-voucher" REPO="git.az-it.net/az/linuxmuster-voucher"
docker build -t ${REPO}:latest . && docker push ${REPO}:latest
#!/bin/bash
# Suche nach vorhandenen Tags im lokalen Docker-System # Suche nach vorhandenen Tags im lokalen Docker-System
LATEST_TAG=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep "$REPO" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+" | sort -V | tail -n 1) LATEST_TAG=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep "$REPO" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+" | sort -V | tail -n 1)