summaryrefslogtreecommitdiffstats
path: root/docker/healthcheck/hooks
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-09-27 21:07:58 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-09-27 23:29:14 +0200
commit4108e6a707b39872be8714d6e54984a93f920413 (patch)
tree0702e522b1f86671f0f333ccbeba3e08c1aa7fb5 /docker/healthcheck/hooks
parent0b15334d7f241d4da822d7c843fd2dfc5d1fdbac (diff)
Add post_push hooks
It allows creating the stable tags as allowed by Docker hub [1]. [1] https://github.com/docker/hub-feedback/issues/341 Change-Id: I84909b20fc8b926eb5414db7d57100aaa6060f84 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/healthcheck/hooks')
-rw-r--r--docker/healthcheck/hooks/post_push8
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/healthcheck/hooks/post_push b/docker/healthcheck/hooks/post_push
new file mode 100644
index 000000000..26a27dd6c
--- /dev/null
+++ b/docker/healthcheck/hooks/post_push
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable"
+docker push "${DOCKER_REPO}:stable"
+
+exit $?