Merge remote-tracking branch 'refs/remotes/origin/ilyaz/add_darwin_arm64_binary' into ilyaz/add_darwin_arm64_binary
commit
f86353974a
5
Makefile
5
Makefile
|
@ -44,12 +44,13 @@ HYPERKIT_BUILD_IMAGE ?= karalabe/xgo-1.12.x
|
|||
# NOTE: "latest" as of 2020-05-13. kube-cross images aren't updated as often as Kubernetes
|
||||
# https://github.com/kubernetes/kubernetes/blob/master/build/build-image/cross/VERSION
|
||||
|
||||
# TODO
|
||||
#
|
||||
# TODO: See https://github.com/kubernetes/minikube/issues/10276
|
||||
>>>>>>> refs/remotes/origin/ilyaz/add_darwin_arm64_binary
|
||||
#BUILD_IMAGE ?= us.gcr.io/k8s-artifacts-prod/build-image/kube-cross:v$(GO_VERSION)-1
|
||||
BUILD_IMAGE ?= golang:1.16beta1-buster
|
||||
#
|
||||
|
||||
|
||||
ISO_BUILD_IMAGE ?= $(REGISTRY)/buildroot-image
|
||||
KVM_BUILD_IMAGE ?= $(REGISTRY)/kvm-build-image:$(GO_VERSION)
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ declare -rx TAG="${ghprbActualCommit}"
|
|||
|
||||
docker kill $(docker ps -q) || true
|
||||
docker rm $(docker ps -aq) || true
|
||||
make -j 16 all && failed=$? || failed=$?
|
||||
make -j 16 all minikube-darwin-arm64 && failed=$? || failed=$?
|
||||
|
||||
"out/minikube-$(go env GOOS)-$(go env GOARCH)" version
|
||||
|
||||
|
|
|
@ -1,76 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Copyright 2016 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.
|
||||
|
||||
# This script builds all the minikube binary for all 3 platforms as well as Windows-installer and .deb
|
||||
# This is intended to be run on a new release tag in order to build/upload the required files for a release
|
||||
|
||||
# The script expects the following env variables:
|
||||
# VERSION_MAJOR: The major version of the tag to be released.
|
||||
# VERSION_MINOR: The minor version of the tag to be released.
|
||||
# VERSION_BUILD: The build version of the tag to be released.
|
||||
# BUCKET: The GCP bucket the build files should be uploaded to.
|
||||
# GITHUB_TOKEN: The Github API access token. Injected by the Jenkins credential provider.
|
||||
|
||||
set -eux -o pipefail
|
||||
readonly VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BUILD}"
|
||||
readonly DEB_VERSION="${VERSION/-/\~}"
|
||||
readonly RPM_VERSION="${DEB_VERSION}"
|
||||
readonly TAGNAME="v${VERSION}"
|
||||
|
||||
# Make sure the tag matches the Makefile
|
||||
grep -E "^VERSION_MAJOR \\?=" Makefile | grep "${VERSION_MAJOR}"
|
||||
grep -E "^VERSION_MINOR \\?=" Makefile | grep "${VERSION_MINOR}"
|
||||
grep -E "^VERSION_BUILD \\?=" Makefile | grep "${VERSION_BUILD}"
|
||||
|
||||
# Force go packages to the Jekins home directory
|
||||
export GOPATH=$HOME/go
|
||||
|
||||
# Verify ISO exists
|
||||
echo "Verifying ISO exists ..."
|
||||
make verify-iso
|
||||
|
||||
# Build and upload
|
||||
env BUILD_IN_DOCKER=y BUILD_IMAGE=golang:1.16beta1-buster \
|
||||
make -j 16 \
|
||||
all \
|
||||
out/minikube-darwin-arm64 \
|
||||
out/minikube-installer.exe \
|
||||
"out/minikube_${DEB_VERSION}-0_amd64.deb" \
|
||||
"out/minikube_${DEB_VERSION}-0_arm64.deb" \
|
||||
"out/minikube-${RPM_VERSION}-0.x86_64.rpm" \
|
||||
"out/minikube-${RPM_VERSION}-0.aarch64.rpm" \
|
||||
"out/docker-machine-driver-kvm2_${DEB_VERSION}-0_amd64.deb" \
|
||||
"out/docker-machine-driver-kvm2-${RPM_VERSION}-0.x86_64.rpm"
|
||||
|
||||
make checksum
|
||||
|
||||
# unversioned names to avoid updating upstream Kubernetes documentation each release
|
||||
cp "out/minikube_${DEB_VERSION}-0_amd64.deb" out/minikube_latest_amd64.deb
|
||||
cp "out/minikube_${DEB_VERSION}-0_arm64.deb" out/minikube_latest_arm64.deb
|
||||
cp "out/minikube-${RPM_VERSION}-0.x86_64.rpm" out/minikube-latest.x86_64.rpm
|
||||
cp "out/minikube-${RPM_VERSION}-0.aarch64.rpm" out/minikube-latest.aarch64.rpm
|
||||
|
||||
|
||||
# Update "latest" release for non-beta/non-alpha builds
|
||||
if ! [[ ${VERSION_BUILD} =~ ^[0-9]+$ ]]; then
|
||||
echo "NOTE: ${VERSION} appears to be a non-standard release, not updating /releases/latest"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#echo "Updating Docker images ..."
|
||||
#make push-gvisor-addon-image push-storage-provisioner-manifest
|
||||
|
||||
echo "Updating latest bucket for ${VERSION} release ..."
|
Loading…
Reference in New Issue