1
0
Fork 0

added build script for nightly docker images (#4400)

This commit is contained in:
Frank Celler 2018-01-23 16:29:06 +01:00 committed by GitHub
parent 6d8dfe57c0
commit deb8c3b04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/bin/bash
set -e
BRANCH="$1"
if [ -z "$BRANCH" ]; then
echo "usage: $0 <branch-name>"
exit 1
fi
./scripts/build-docker.sh
LOCAL_TAG="`cat build/.arangodb-docker/.docker-tag`"
if [ -z "$LOCAL_TAG" ]; then
echo "$0: docker build did not succeed, please check logs"
echo "$0: missing file 'build/.arangodb-docker/.docker-tag'"
exit 1
fi
docker tag arangodb:$LOCAL_TAG arangodb/arangodb-preview:nightly.$BRANCH
docker push arangodb/arangodb-preview:nightly.$BRANCH