add Travis CI
This commit is contained in:
parent
6b517528ee
commit
36fa566355
2 changed files with 27 additions and 0 deletions
14
.travis.sh
Executable file
14
.travis.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Travis CI specific build script
|
||||
#
|
||||
set -euo pipefail
|
||||
|
||||
./build
|
||||
|
||||
if [[ "$TRAVIS_BRANCH" = master && -z "$TRAVIS_PULL_REQUEST_BRANCH" ]]; then
|
||||
./docker-login "$CI_REGISTRY" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD"
|
||||
./push-all "$CI_REGISTRY_PREFIX" "$IMAGE_TAG"
|
||||
else
|
||||
echo "=== not pushing on non-master ==="
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue