Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Dynamically set version for ubuntu console
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Mar 20, 2015
1 parent 189e40c commit 3f1d8ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func NewConfig() *Config {
"--ipc=host " +
"--net=host " +
"--pid=host " +
"rancher/ubuntuconsole:v0.0.2",
"rancher/ubuntuconsole:" + VERSION,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-extra-images
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=v0.2.0
VERSION=v0.2.1

0 comments on commit 3f1d8ad

Please sign in to comment.