Create rolling releases using the Gitlab API. (#171)

* Create rolling releases using the Gitlab API.

This commit builds rolling releases of Container images using the latest commit
on master branch if the pipeline passed for it. The script which gets the
references is still un-tested and should be tested.

The latest commit hashes are passed as arguments to the Dockerfile, which is
then used by PIP to install the specific version of the dependency.
This commit is contained in:
Abhilash Raj
2017-11-03 18:43:59 -07:00
committed by GitHub
parent 743bc8522c
commit 3434446987
9 changed files with 127 additions and 45 deletions

View File

@@ -1,9 +1,16 @@
#!/bin/sh
if [ "$TRAVIS_BRANCH" = "master" ]; then
TAG="latest"
if [ "$TRAVIS_EVENT_TYPE" = "cron" ] || [ ! -z $DEV ] ; then
echo "Travis event type is: $TRAVIS_EVENT_TYPE"
echo "This is a development version build: $DEV"
TAG="rolling"
else
TAG="$TRAVIS_BRANCH"
if [ "$TRAVIS_BRANCH" = "master" ]; then
TAG="latest"
else
TAG="$TRAVIS_BRANCH"
fi
fi