Skip to content

Commit

Permalink
require CLOUD_PROVIDER env to be set during release
Browse files Browse the repository at this point in the history
  • Loading branch information
dewjam committed Mar 29, 2022
1 parent 2ed0369 commit 5495dd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hack/nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ RELEASE_REPO=${RELEASE_REPO:-public.ecr.aws/z3c6l6z9/karpenter-nightly}
RELEASE_VERSION=${RELEASE_VERSION:-$(date "${NIGHTLY_TAG_FMT}")}
RELEASE_PLATFORM="--platform=linux/amd64,linux/arm64"

if [ -z "$CLOUD_PROVIDER" ]; then
echo "CLOUD_PROVIDER environment variable is not set: 'export CLOUD_PROVIDER=aws'"
exit 1
fi

# TODO restore https://reproducible-builds.org/docs/source-date-epoch/
if [ -z "$SOURCE_DATE_EPOCH" ]; then
BUILD_DATE=$(date -u ${DATE_FMT})
Expand Down
5 changes: 5 additions & 0 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ RELEASE_REPO=${RELEASE_REPO:-public.ecr.aws/karpenter}
RELEASE_VERSION=${RELEASE_VERSION:-$(git describe --tags --always)}
RELEASE_PLATFORM="--platform=linux/amd64,linux/arm64"

if [ -z "$CLOUD_PROVIDER" ]; then
echo "CLOUD_PROVIDER environment variable is not set: 'export CLOUD_PROVIDER=aws'"
exit 1
fi

# TODO restore https://reproducible-builds.org/docs/source-date-epoch/
DATE_FMT="+%Y-%m-%dT%H:%M:%SZ"
if [ -z "$SOURCE_DATE_EPOCH" ]; then
Expand Down

0 comments on commit 5495dd3

Please sign in to comment.