Merge pull request #12503 from spowelljr/addGitHubReleaseInstaller
Add github-release install scriptpull/12506/head
commit
cd2ec88f95
|
@ -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
|
|
@ -35,6 +35,11 @@ readonly GITHUB_ORGANIZATION="kubernetes"
|
|||
readonly GITHUB_REPO="minikube"
|
||||
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=""
|
||||
if ! [[ ${VERSION_BUILD} =~ ^[0-9]+$ ]]; then
|
||||
RELEASE_FLAGS="-p" # Pre-release
|
||||
|
|
Loading…
Reference in New Issue