Skip to content

Commit

Permalink
test: Disable notify release to disable Tekton runs on Merge and Snap…
Browse files Browse the repository at this point in the history
…shot (#4050)
  • Loading branch information
jonathan-innis committed Jun 15, 2023
1 parent 33b66a5 commit 644d36a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions hack/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Helm Chart Version $(helmChartVersion $RELEASE_VERSION)"
cosignImages
publishHelmChart "karpenter" "${RELEASE_VERSION}" "${RELEASE_REPO_ECR}"
publishHelmChart "karpenter-crd" "${RELEASE_VERSION}" "${RELEASE_REPO_ECR}"
notifyRelease "$RELEASE_VERSION" $PR_NUMBER
pullPrivateReplica "$RELEASE_VERSION"
}

Expand Down Expand Up @@ -113,18 +112,6 @@ cosignImages() {
"${CONTROLLER_IMG}"
}

notifyRelease() {
RELEASE_VERSION=$1
PR_NUMBER=$2
RELEASE_TYPE=$(releaseType $RELEASE_VERSION)
LAST_STABLE_RELEASE_TAG=$(git describe --tags --abbrev=0)
MESSAGE="{\"releaseType\":\"${RELEASE_TYPE}\",\"releaseIdentifier\":\"${RELEASE_VERSION}\",\"prNumber\":\"${PR_NUMBER}\",\"githubAccount\":\"${GITHUB_ACCOUNT}\",\"lastStableReleaseTag\":\"${LAST_STABLE_RELEASE_TAG}\"}"
aws sns publish \
--topic-arn ${SNS_TOPIC_ARN} \
--message ${MESSAGE} \
--no-cli-pager
}

pullPrivateReplica(){
authenticatePrivateRepo
RELEASE_IDENTIFIER=$1
Expand Down

0 comments on commit 644d36a

Please sign in to comment.