Make version and registry call-able from env for images, too

This commit is contained in:
Nils Freydank 2023-07-29 17:30:39 +02:00
parent 591508e3ce
commit 39f2d03f66
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112

View File

@ -6,8 +6,8 @@ set -uxa
GPG_SIGNING_KEY="${GPG_SIGNING_KEY:-0x0F1DEAB2D36AD112}" GPG_SIGNING_KEY="${GPG_SIGNING_KEY:-0x0F1DEAB2D36AD112}"
REGISTRY="git.holgersson.xyz/gentoo-related/gentoo-binpkg-builder" REGISTRY="${REGISTRY:-git.holgersson.xyz/gentoo-related/gentoo-binpkg-builder}"
VERSION="$(date --utc +%Y%m%d_%H%M%S)" VERSION="${VERSION:-$(date --utc +%Y%m%d_%H%M%S)}"
IMAGE_TAG="${REGISTRY}:${VERSION}" IMAGE_TAG="${REGISTRY}:${VERSION}"
REPOS="${REPOS:-/var/db/repos}" REPOS="${REPOS:-/var/db/repos}"