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:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$DB" = "postgres" ]
|
||||
# If the DB environment variable is not set, use postgres.x
|
||||
if [ "$DB" = "postgres" ] || [ -z $DB ]
|
||||
then
|
||||
docker-compose -f docker-compose.yaml -f docker-test.yaml up -d
|
||||
elif [ "$DB" = "mysql" ]
|
||||
@@ -26,10 +27,10 @@ docker logs mailman-core
|
||||
|
||||
|
||||
# Check to see if the core is working as expected.
|
||||
curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system
|
||||
docker exec -it mailman-core curl -u restadmin:restpass http://172.19.199.2:8001/3.1/system
|
||||
|
||||
# Check to see if postorius is working.
|
||||
curl -L http://172.19.199.3:8000/postorius/lists | grep "Mailing List"
|
||||
docker exec -it mailman-web curl -L http://172.19.199.3:8000/postorius/lists | grep "Mailing List"
|
||||
|
||||
# Check to see if hyperkitty is working.
|
||||
curl -L http://172.19.199.3:8000/hyperkitty/ | grep "Available lists"
|
||||
docker exec -it mailman-web curl -L http://172.19.199.3:8000/hyperkitty/ | grep "Available lists"
|
||||
|
||||
Reference in New Issue
Block a user