Compare commits

...

1 Commits

Author SHA1 Message Date
Darren Shepherd
3f1d8adf6c Dynamically set version for ubuntu console 2015-03-20 12:33:40 -07:00
4 changed files with 4 additions and 5 deletions

View File

@@ -12,12 +12,11 @@ docker run --rm -it -e CHOWN_ID=$(id -u) -v $(pwd)/dist:/source/target $DOCKER_I
# Stupidest argparse ever
if echo "$@" | grep -q -- '--images'; then
./scripts/build-extra-images
echo 'docker push rancher/ubuntuconsole'
fi
# And again
if echo "$@" | grep -q -- '--push'; then
docker push rancher/ubuntuconsole
docker push rancher/ubuntuconsole:$(<./scripts/version)
fi
ls -l dist/artifacts

View File

@@ -244,7 +244,7 @@ func NewConfig() *Config {
"--ipc=host " +
"--net=host " +
"--pid=host " +
"rancher/ubuntuconsole:v0.0.2",
"rancher/ubuntuconsole:" + VERSION,
},
},
},

View File

@@ -7,7 +7,7 @@ source scripts/build-common
>${BUILD}/tags
for i in scripts/extraimages/[0-9]*; do
tag=$(echo $i | cut -f2 -d-)
tag=$(echo $i | cut -f2 -d-):$(<scripts/version)
echo Building $tag
docker build -t rancher/$tag -f $i .
echo $tag >> ${BUILD}/tags

View File

@@ -1 +1 @@
VERSION=v0.2.0
VERSION=v0.2.1