Merge pull request #12503 from spowelljr/addGitHubReleaseInstaller

Add github-release install script
pull/12506/head
Steven Powell 2021-09-17 13:33:55 -07:00 committed by GitHub
commit cd2ec88f95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#!/bin/bash
# Copyright 2021 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -eux -o pipefail
echo "Installing latest version of github-release"
go install github.com/github-release/github-release@latest

View File

@ -35,6 +35,11 @@ readonly GITHUB_ORGANIZATION="kubernetes"
readonly GITHUB_REPO="minikube" readonly GITHUB_REPO="minikube"
readonly PROJECT_NAME="${GITHUB_REPO}" readonly PROJECT_NAME="${GITHUB_REPO}"
# installing golang to install github-release
./hack/jenkins/installers/check_install_golang.sh "/usr/local"
# installing latest version of github-release
./hack/jenkins/installers/check_install_github_release.sh
RELEASE_FLAGS="" RELEASE_FLAGS=""
if ! [[ ${VERSION_BUILD} =~ ^[0-9]+$ ]]; then if ! [[ ${VERSION_BUILD} =~ ^[0-9]+$ ]]; then
RELEASE_FLAGS="-p" # Pre-release RELEASE_FLAGS="-p" # Pre-release