Make version and registry call-able from env

This commit is contained in:
Nils Freydank 2023-07-29 17:16:58 +02:00
parent d5cf377e57
commit 591508e3ce
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ set -uxa
mapfile -t EMERGE_CALL_PARAMETERS <<< "${@}"
REGISTRY="git.holgersson.xyz/gentoo-related/gentoo-binpkg-builder"
VERSION="latest"
REGISTRY="${REGISTRY:-git.holgersson.xyz/gentoo-related/gentoo-binpkg-builder}"
VERSION="${VERSION:-latest}"
IMAGE_TAG="${REGISTRY}:${VERSION}"
REPOS="${REPOS:-/var/db/repos}"