kube-router/build/travis-deploy.sh
Bryan Zubrod 9e75203598 Use libnetwork/ipvs instead of libipvs (#101)
* Use libnetwork/ipvs alternative
* PR image tag simplification
* Remove nested vendor directories
2017-08-04 14:07:57 -05:00

23 lines
593 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
set -o pipefail
# Pull Request image tag format: PR00
if [ "${TRAVIS_EVENT_TYPE}" = "pull_request" ]; then
PR_USER=$(echo "$TRAVIS_PULL_REQUEST_SLUG" | sed -e 's/\/.*//')
echo "Building/pushing PR$TRAVIS_PULL_REQUEST from $PR_USER"
make push IMG_TAG="PR$TRAVIS_PULL_REQUEST"
exit 0
fi
# Release image tag format: v0.0.0 and latest
if [ -n "$TRAVIS_TAG" ]; then
echo "Running Release build on Travis"
make release RELEASE_TAG="$TRAVIS_TAG"
exit 0
fi
# Push image tag format: COMMIT
echo "Running push build on Travis"
make push