From 39f2d03f663ab28e36343acd050e947b9ba0ce7d Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sat, 29 Jul 2023 17:30:39 +0200 Subject: [PATCH] Make version and registry call-able from env for images, too --- build-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-image.sh b/build-image.sh index 73a7805..1f50ad4 100755 --- a/build-image.sh +++ b/build-image.sh @@ -6,8 +6,8 @@ set -uxa GPG_SIGNING_KEY="${GPG_SIGNING_KEY:-0x0F1DEAB2D36AD112}" -REGISTRY="git.holgersson.xyz/gentoo-related/gentoo-binpkg-builder" -VERSION="$(date --utc +%Y%m%d_%H%M%S)" +REGISTRY="${REGISTRY:-git.holgersson.xyz/gentoo-related/gentoo-binpkg-builder}" +VERSION="${VERSION:-$(date --utc +%Y%m%d_%H%M%S)}" IMAGE_TAG="${REGISTRY}:${VERSION}" REPOS="${REPOS:-/var/db/repos}"