-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add release script * Add latest tag in build and release scripts Remove release prow workflow * Fix enas cnn cifar10 cpu image * Use VERSION instead of v1beta1 * Remove build test scripts
- Loading branch information
1 parent
d5f5aa0
commit 499856f
Showing
22 changed files
with
217 additions
and
986 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2020 The Kubeflow Authors. | ||
# | ||
# 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 is used to release all Katib images in docker.io/kubeflowkatib registry | ||
# It adds "v1beta1-<commit-SHA>" and "latest" tag to them. | ||
|
||
set -e | ||
|
||
COMMIT=$(git rev-parse --short HEAD) | ||
REGISTRY="docker.io/kubeflowkatib" | ||
VERSION="v1beta1" | ||
TAG=${VERSION}-${COMMIT} | ||
|
||
echo "Releasing images for Katib ${VERSION}..." | ||
echo "Commit SHA: ${COMMIT}" | ||
echo "Image registry: ${REGISTRY}" | ||
echo -e "Image tag: ${TAG}\n" | ||
|
||
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/../.. | ||
cd ${SCRIPT_ROOT} | ||
|
||
# Building the images | ||
make build REGISTRY=${REGISTRY} TAG=${TAG} | ||
|
||
# Releasing the images | ||
echo -e "\nAll Katib images have been successfully built\n" | ||
|
||
# Katib core images | ||
echo -e "\nPushing Katib controller image...\n" | ||
docker push ${REGISTRY}/katib-controller:${TAG} | ||
docker push ${REGISTRY}/katib-controller:latest | ||
|
||
echo -e "\nPushing Katib DB manager image...\n" | ||
docker push ${REGISTRY}/katib-db-manager:${TAG} | ||
docker push ${REGISTRY}/katib-db-manager:latest | ||
|
||
echo -e "\nPushing Katib UI image...\n" | ||
docker push ${REGISTRY}/katib-ui:${TAG} | ||
docker push ${REGISTRY}/katib-ui:latest | ||
|
||
echo -e "\nPushing file metrics collector image...\n" | ||
docker push ${REGISTRY}/file-metrics-collector:${TAG} | ||
docker push ${REGISTRY}/file-metrics-collector:latest | ||
|
||
echo -e "\nPushing TF Event metrics collector image...\n" | ||
docker push ${REGISTRY}/tfevent-metrics-collector:${TAG} | ||
docker push ${REGISTRY}/tfevent-metrics-collector:latest | ||
|
||
# Suggestion images | ||
echo -e "\nPushing suggestion images..." | ||
|
||
echo -e "\nPushing hyperopt suggestion...\n" | ||
docker push ${REGISTRY}/suggestion-hyperopt:${TAG} | ||
docker push ${REGISTRY}/suggestion-hyperopt:latest | ||
|
||
echo -e "\nPushing chocolate suggestion...\n" | ||
docker push ${REGISTRY}/suggestion-chocolate:${TAG} | ||
docker push ${REGISTRY}/suggestion-chocolate:latest | ||
|
||
echo -e "\nPushing hyperband suggestion...\n" | ||
docker push ${REGISTRY}/suggestion-hyperband:${TAG} | ||
docker push ${REGISTRY}/suggestion-hyperband:latest | ||
|
||
echo -e "\nPushing skopt suggestion...\n" | ||
docker push ${REGISTRY}/suggestion-skopt:${TAG} | ||
docker push ${REGISTRY}/suggestion-skopt:latest | ||
|
||
echo -e "\nPushing goptuna suggestion...\n" | ||
docker push ${REGISTRY}/suggestion-goptuna:${TAG} | ||
docker push ${REGISTRY}/suggestion-goptuna:latest | ||
|
||
echo -e "\nPushing ENAS suggestion...\n" | ||
docker push ${REGISTRY}/suggestion-enas:${TAG} | ||
docker push ${REGISTRY}/suggestion-enas:latest | ||
|
||
echo -e "\nPushing DARTS suggestion...\n" | ||
docker push ${REGISTRY}/suggestion-darts:${TAG} | ||
docker push ${REGISTRY}/suggestion-darts:latest | ||
|
||
# Early stopping images | ||
echo -e "\nPushing early stopping images...\n" | ||
|
||
echo -e "\nPushing median stopping rule...\n" | ||
docker push ${REGISTRY}/earlystopping-medianstop:${TAG} | ||
docker push ${REGISTRY}/earlystopping-medianstop:latest | ||
|
||
# Training container images | ||
echo -e "\nPushing training container images..." | ||
|
||
echo -e "\nPushing mxnet mnist training container example...\n" | ||
docker push ${REGISTRY}/mxnet-mnist:${TAG} | ||
docker push ${REGISTRY}/mxnet-mnist:latest | ||
|
||
echo -e "\nPushing PyTorch mnist training container example...\n" | ||
docker push ${REGISTRY}/pytorch-mnist:${TAG} | ||
docker push ${REGISTRY}/pytorch-mnist:latest | ||
|
||
echo -e "\nPushing Keras CIFAR-10 CNN training container example for ENAS with GPU support...\n" | ||
docker push ${REGISTRY}/enas-cnn-cifar10-gpu:${TAG} | ||
docker push ${REGISTRY}/enas-cnn-cifar10-gpu:latest | ||
|
||
echo -e "\nPushing Keras CIFAR-10 CNN training container example for ENAS with CPU support...\n" | ||
docker push ${REGISTRY}/enas-cnn-cifar10-cpu:${TAG} | ||
docker push ${REGISTRY}/enas-cnn-cifar10-cpu:latest | ||
|
||
echo -e "\nPushing PyTorch CIFAR-10 CNN training container example for DARTS...\n" | ||
docker push ${REGISTRY}/darts-cnn-cifar10:${TAG} | ||
docker push ${REGISTRY}/darts-cnn-cifar10:latest | ||
|
||
echo -e "\nKatib ${VERSION} for commit SHA: ${COMMIT} has been released successfully!" |
Oops, something went wrong.