Files
OSIT-Mailman3/tests/generate_tests.sh
Abhilash Raj 3434446987 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.
2017-11-03 18:43:59 -07:00

29 lines
516 B
Bash

#!/bin/sh
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
if [ "$TRAVIS_BRANCH" = "master" ]; then
TAG="latest"
else
TAG="$TRAVIS_BRANCH"
fi
fi
cat > docker-test.yaml <<EOF
version: '2'
services:
mailman-core:
image: maxking/mailman-core:$TAG
mailman-web:
image: maxking/mailman-web:$TAG
environment:
- SECRET_KEY=abcdefghijklmnopqrstuv
EOF