Skip to content

Commit

Permalink
Merge pull request #530 from minrk/fix-tag-truncation
Browse files Browse the repository at this point in the history
fix commit hash truncation on docker images
  • Loading branch information
betatim authored Dec 20, 2018
2 parents d12afc2 + aa7635a commit 0995b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/post_push
Original file line number Diff line number Diff line change
Expand Up @@ -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: -8}"
docker tag $DOCKER_REPO:$DOCKER_TAG $HASH_IMAGE
docker push $HASH_IMAGE

0 comments on commit 0995b18

Please sign in to comment.