Error if TAG_BASE is empty.

This commit is contained in:
Brad Warren 2020-08-12 16:38:55 -07:00
parent d7386bd962
commit 325f51aba5
2 changed files with 8 additions and 0 deletions

View file

@ -51,6 +51,10 @@ Build() {
}
TAG_BASE="$1"
if [ -z "$TAG_BASE" ]; then
echo "We cannot tag Docker images with an empty string!" >&2
exit 1
fi
# Step 1: Certbot core Docker
Build "$DOCKER_HUB_ORG/certbot" "$TAG_BASE" "$REPO_ROOT" "$WORK_DIR/core"

View file

@ -24,6 +24,10 @@ Deploy() {
}
TAG_BASE="$1" # Eg. v0.35.0 or nightly
if [ -z "$TAG_BASE" ]; then
echo "We cannot tag Docker images with an empty string!" >&2
exit 1
fi
source "$WORK_DIR/lib/common"
# Step 1: Certbot core Docker