Skip to content

Commit

Permalink
Merge pull request #22 from krysopath/dockerhub-hook
Browse files Browse the repository at this point in the history
show all vars in docker hooks
  • Loading branch information
krysopath authored Apr 20, 2019
2 parents 017a187 + 0b3a9ec commit dd81e4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hooks/post_push
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/sh

echo $SOURCE_BRANCH
echo $SOURCE_COMMIT
echo $COMMIT_MSG
echo $DOCKER_REPO
echo $DOCKERFILE_PATH
echo $DOCKER_TAG
echo $IMAGE_NAME

docker tag "$IMAGE_NAME" "$DOCKER_REPO:$SOURCE_COMMIT"
docker push "$DOCKER_REPO:$SOURCE_COMMIT"

0 comments on commit dd81e4f

Please sign in to comment.