Skip to content

Commit

Permalink
Merge pull request #5 from tianon/ver
Browse files Browse the repository at this point in the history
Tag Docker images with a version number
  • Loading branch information
tianon authored May 24, 2017
2 parents 12cae69 + 3208b0d commit 4e6bdec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2
0.2-dev
4 changes: 3 additions & 1 deletion build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ timestamp="${1:-}"; shift || eusage 'missing timestamp'
mkdir -p "$outputDir"
outputDir="$(readlink -f "$outputDir")"

dockerImage='debuerreotype/debuerreotype'
ver="$("$thisDir/scripts/debuerreotype-version")"
ver="${ver%% *}"
dockerImage="debuerreotype/debuerreotype:$ver"
[ -z "$build" ] || docker build -t "$dockerImage" "$thisDir"

mirror="$("$thisDir/scripts/.snapshot-url.sh" "$timestamp")"
Expand Down
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ if docker info | grep -q apparmor; then
)
fi

dockerImage='debuerreotype/debuerreotype'
ver="$("$thisDir/scripts/debuerreotype-version")"
ver="${ver%% *}"
dockerImage="debuerreotype/debuerreotype:$ver"
[ -z "$build" ] || docker build -t "$dockerImage" "$thisDir"

docker run \
Expand Down

0 comments on commit 4e6bdec

Please sign in to comment.