Add a jenkins script to build/publish the ISO.

pull/819/head
dlorenc 2016-11-10 13:36:04 -08:00
parent 4652447d1e
commit e1bf3fdac8
1 changed files with 23 additions and 0 deletions

23
hack/jenkins/build_iso.sh Normal file
View File

@ -0,0 +1,23 @@
#!/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.
set -e
ISO="out/buildroot/output/images/rootfs.iso9660"
make minikube-iso
openssl sha256 ${ISO} | awk '{print $2}' > "${ISO}.sha256"
gsutil cp "${ISO}" "${DEST}"
gsutil cp "${ISO}.sha256" "${DEST}.sha256"