Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

executable file 21 lines (14 sloc) 687 Bytes
#!/bin/bash
set -e
SHA=`git rev-parse HEAD`
if [ -z ${COOKIE+x} ]; then
COOKIE=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1)
fi
DOCKER_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
mkdir -p tmp/
echo -e "travis_fold:start:docker-build\r"
docker build --build-arg sha=${SHA} --build-arg cookie=${COOKIE} -f Dockerfile.releaser -t grapevine:releaser .
echo -e "\ntravis_fold:end:docker-build\r"
docker run -ti --name grapevine_releaser_${DOCKER_UUID} grapevine:releaser /bin/true
docker cp grapevine_releaser_${DOCKER_UUID}:/app/_build/prod/rel/grapevine/releases/2.3.0/grapevine.tar.gz tmp/
docker rm grapevine_releaser_${DOCKER_UUID}
You can’t perform that action at this time.