docker-terasology/build.sh

22 lines
598 B
Bash
Raw Normal View History

#!/bin/bash
wget http://jenkins.terasology.org/job/Terasology/lastSuccessfulBuild/artifact/build/resources/main/org/terasology/version/versionInfo.properties
source versionInfo.properties
2016-09-18 21:35:54 +02:00
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
TAGNAME=$engineVersion-$displayVersion
2016-09-19 20:18:20 +02:00
echo The dev-latest build is: $TAGNAME
TAGNAME=nightly-latest
2016-09-18 22:24:57 +02:00
docker build --no-cache -t qwick/terasology:$TAGNAME .
NEW_TAGNAME=nightly-$engineVersion-$buildNumber
2016-09-19 20:31:26 +02:00
docker tag qwick/terasology:$TAGNAME qwick/terasology:$NEW_TAGNAME
2016-09-18 22:22:33 +02:00
docker push qwick/terasology:$TAGNAME
2016-09-19 20:31:26 +02:00
docker push qwick/terasology:$NEW_TAGNAME