Skip to content

Commit

Permalink
don't include timestamp in docker image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
seanharrison committed Oct 31, 2020
1 parent c19c74c commit 6440370
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ TIMESTAMP=$(date -u +%Y%m%d%H%M%S)
SHORT_SHA=$(git rev-parse --short HEAD)

docker build docker --file docker/Dockerfile --tag kruxia/svn:alpine
docker tag kruxia/svn:alpine kruxia/svn:alpine-$TIMESTAMP-$SHORT_SHA
docker tag kruxia/svn:alpine kruxia/svn:alpine-$SHORT_SHA
docker tag kruxia/svn:alpine kruxia/svn

# docker build docker --file docker/buster-slim.Dockerfile --tag kruxia/svn:buster-slim
# docker tag kruxia/svn:buster-slim kruxia/svn:buster-slim-$TIMESTAMP-$SHORT_SHA
# docker tag kruxia/svn:buster-slim kruxia/svn:buster-slim-$SHORT_SHA

while test $# -gt 0
do
case "$1" in
--push)
docker push kruxia/svn:latest
docker push kruxia/svn:alpine
docker push kruxia/svn:alpine-$TIMESTAMP-$SHORT_SHA
docker push kruxia/svn:alpine-$SHORT_SHA
;;
esac
shift
Expand Down

0 comments on commit 6440370

Please sign in to comment.