diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-09-27 21:07:58 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-09-27 23:29:14 +0200 |
commit | 4108e6a707b39872be8714d6e54984a93f920413 (patch) | |
tree | 0702e522b1f86671f0f333ccbeba3e08c1aa7fb5 /docker/vnf | |
parent | 0b15334d7f241d4da822d7c843fd2dfc5d1fdbac (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/vnf')
-rw-r--r-- | docker/vnf/hooks/post_push | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/vnf/hooks/post_push b/docker/vnf/hooks/post_push new file mode 100644 index 000000000..26a27dd6c --- /dev/null +++ b/docker/vnf/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable" +docker push "${DOCKER_REPO}:stable" + +exit $? |