Skip to content

Commit

Permalink
Minor change docker hub post_push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Jul 20, 2022
1 parent a9c1180 commit 1cc5c61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hooks/post_push
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/bin/bash

[[ "$DOCKER_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit
[[ "$DOCKER_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit 0

MINOR_VERSION="${DOCKER_TAG%.*}"
docker tag $IMAGE_NAME $DOCKER_REPO:$MINOR_VERSION
docker push $DOCKER_REPO:$MINOR_VERSION

docker tag $IMAGE_NAME $DOCKER_REPO:edge
docker push $DOCKER_REPO:edge

0 comments on commit 1cc5c61

Please sign in to comment.