Skip to content

Commit c23e6be

Browse files
committed
tag with commit in post_push hook
1 parent c896b14 commit c23e6be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hooks/post_push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
SHA=${SOURCE_COMMIT::8}
3+
docker tag $DOCKER_REPO:$DOCKER_TAG $DOCKER_REPO:$SHA
4+
docker push $DOCKER_REPO:$SHA

0 commit comments

Comments
 (0)