Separate -v and -z into two separate commands (#14420)

This commit is contained in:
Jamie Gaskins 2021-08-05 10:02:39 -05:00 committed by GitHub
parent 095a9c5523
commit de852bd466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ function create_release_containers {
# If the env var for the git tag doesn't exist or is an empty string, then we
# won't build a container image for a cut release.
if [ -v BUILDKITE_TAG || ! -z "${BUILDKITE_TAG}" ]; then
if [ -v BUILDKITE_TAG ] || [ ! -z "${BUILDKITE_TAG}" ]; then
docker build --target production \
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":builder \
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":production \