From a3c7f3213b7c9b38355c204e35683c97ba9b77b9 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 22 Jan 2019 10:15:36 +0100 Subject: [PATCH] fix docker commit tag [ci skip] use the first 8 chars of the commit, not the last --- hooks/post_push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post_push b/hooks/post_push index e31e0429..3f7f7a9e 100644 --- a/hooks/post_push +++ b/hooks/post_push @@ -2,6 +2,6 @@ # when building jupyter/repo2docker:master also push jupyter/repo2docker:abcd1234 -HASH_IMAGE="$DOCKER_REPO:${SOURCE_COMMIT: -8}" +HASH_IMAGE="$DOCKER_REPO:${SOURCE_COMMIT:0:8}" docker tag $DOCKER_REPO:$DOCKER_TAG $HASH_IMAGE docker push $HASH_IMAGE