1
0

let's make this even easier?

This commit is contained in:
tbelway 2024-12-12 09:54:16 -05:00
parent a872ac2479
commit 50da236504

View File

@ -70,6 +70,10 @@ get_parameters() {
;;
"U")
FOUNDRY_URL="$OPTARG"
if [[ "$FOUNDRY_URL" != *"verify"* ]]; then
echo "Not a valid foundry URL, please use the TIMED URL option when at the Purchased LIcenses page on foundry website in your account."
exit 1
fi
;;
"v")
OPT_VERSION="$OPTARG"
@ -149,7 +153,7 @@ container_initialize() {
}
container_scheduled_build() {
echoo "Scheduled build starting..."
echo "Scheduled build starting..."
if [[ "${CADDY_IMAGE_VERSION}" != "${CUSTOM_CADDY_IMAGE_VERSION}" ]]; then
podman login ${REGISTRY}
podman build -f ${OPT_CONTAINERFILE} -t ${REGISTRY}/${REGISTRY_NAMESPACE}:${TAG} -t ${REGISTRY}/${REGISTRY_NAMESPACE}:latest --build-arg foundry_url=${FOUNDRY_URL}