diff --git a/.travis.yml b/.travis.yml index e79b076e0..d3a0ad110 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,13 @@ notifications: on_failure: always on_success: never +before_install: + - curl -fsSL https://get.docker.com | sh + - echo '{"experimental":"enabled"}' | sudo tee /etc/docker/daemon.json + - mkdir -p $HOME/.docker + - echo '{"experimental":"enabled"}' | sudo tee $HOME/.docker/config.json + - sudo service docker start + # New secure variables can be added using travis encrypt -r kubernetes/ingress-nginx --add K=V env: global: diff --git a/.travis/release-from-travis.sh b/.travis/release-from-travis.sh new file mode 100755 index 000000000..36c78ea00 --- /dev/null +++ b/.travis/release-from-travis.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash + +# Copyright 2017 The Kubernetes 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. + +if ! [ -z $DEBUG ]; then + set -x +fi + +set -o errexit +set -o pipefail + +if [ "$TRAVIS_CI_TOKEN" == "" ]; +then + echo "Environment variable TRAVIS_CI_TOKEN is missing."; + exit 1; +fi + +function publish() { + +body=$(cat <