From 591508e3ce8d5f56e69bba0ce438d91f13b44e81 Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sat, 29 Jul 2023 17:16:58 +0200 Subject: [PATCH] Make version and registry call-able from env --- build-packages.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-packages.sh b/build-packages.sh index 71a8226..7fd27cb 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -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}"