2016-09-18 21:28:15 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-04-03 21:08:16 +02:00
|
|
|
rm versionInfo.properties*
|
2016-09-18 21:28:15 +02:00
|
|
|
|
2021-07-08 08:26:12 +02:00
|
|
|
#wget http://jenkins.terasology.org/job/Terasology/lastSuccessfulBuild/artifact/build/resources/main/org/terasology/version/versionInfo.properties
|
|
|
|
wget http://jenkins.terasology.io/teraorg/job/Terasology/job/Omega/job/develop/lastSuccessfulBuild/artifact/distros/omega/versionInfo.properties
|
2016-09-18 21:28:15 +02:00
|
|
|
|
|
|
|
source versionInfo.properties
|
|
|
|
|
2016-09-18 21:35:54 +02:00
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
2016-09-18 21:28:15 +02:00
|
|
|
|
|
|
|
TAGNAME=$engineVersion-$displayVersion
|
2016-09-19 20:18:20 +02:00
|
|
|
echo The dev-latest build is: $TAGNAME
|
2016-10-08 11:33:13 +02:00
|
|
|
TAGNAME=unstable-latest
|
2016-09-18 21:28:15 +02:00
|
|
|
|
2016-09-18 22:24:57 +02:00
|
|
|
docker build --no-cache -t qwick/terasology:$TAGNAME .
|
2016-09-18 21:28:15 +02:00
|
|
|
|
2016-10-08 11:33:13 +02:00
|
|
|
NEW_TAGNAME=unstable-$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
|