24 lines
773 B
Bash
Executable File
24 lines
773 B
Bash
Executable File
#!/bin/bash
|
|
|
|
rm versionInfo.properties*
|
|
|
|
#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
|
|
|
|
source versionInfo.properties
|
|
|
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
|
|
|
TAGNAME=$engineVersion-$displayVersion
|
|
echo The dev-latest build is: $TAGNAME
|
|
TAGNAME=unstable-latest
|
|
|
|
docker build --no-cache -t qwick/terasology:$TAGNAME .
|
|
|
|
NEW_TAGNAME=unstable-$engineVersion-$buildNumber
|
|
|
|
docker tag qwick/terasology:$TAGNAME qwick/terasology:$NEW_TAGNAME
|
|
|
|
docker push qwick/terasology:$TAGNAME
|
|
docker push qwick/terasology:$NEW_TAGNAME
|