Skip to content

Commit

Permalink
Merge pull request #69 from hashicorp/releng/redhat-fix
Browse files Browse the repository at this point in the history
Releng/redhat fix
  • Loading branch information
emilymianeil authored Nov 27, 2023
2 parents c9f50f7 + e80d8df commit f6278ea
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion scripts/digest_inputs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ source "${BASH_SOURCE%/*}/validation.bash"
[ -n "${ARCH:-}" ] || die "Must set ARCH"
[ -n "${TARGET:-}" ] || die "Must set TARGET"
[ -n "${TAGS:-}${REDHAT_TAG:-}" ] || die "Must set either TAGS or REDHAT_TAG"
[ -z "${TAGS:-}" ] || [ -z "${REDHAT_TAG:-}" ] || die "Must set either TAGS or REDHAT_TAG (not both)"

# Optional env vars.
ARM_VERSION="${ARM_VERSION:-}"
Expand Down
7 changes: 0 additions & 7 deletions scripts/digest_inputs.bats
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,6 @@ assert_failure_with_message_when() { local MESSAGE="$1"; shift

}

@test "redhat_tag and tags set / error" {
set_all_required_env_vars_and_tags
export REDHAT_TAG="blah"
WANT_ERR="Must set either TAGS or REDHAT_TAG (not both)"
assert_failure_with_message_when "$WANT_ERR" ./digest_inputs
}

@test "redhat_tags contains an old redhat tag / error" {
set_all_required_env_vars_and_tags
TAGS=""
Expand Down
1 change: 0 additions & 1 deletion scripts/docker_build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ die() { echo "$1" 1>&2; exit 1; }
[ -n "${PLATFORM:-}" ] || die "Must set PLATFORM"
[ -n "${AUTO_TAG:-}" ] || die "Must set AUTO_TAG"
[ -n "${TAGS:-}${REDHAT_TAG:-}" ] || die "Must set either TAG or REDHAT_TAG"
[ -z "${TAGS:-}" ] || [ -z "${REDHAT_TAG:-}" ] || die "Must set either TAG or REDHAT_TAG (not both)"


WORKDIR="${WORKDIR:-.}"
Expand Down

0 comments on commit f6278ea

Please sign in to comment.