From 4108e6a707b39872be8714d6e54984a93f920413 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 27 Sep 2017 21:07:58 +0200 Subject: Add post_push hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docker/parser/hooks/post_push | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docker/parser/hooks/post_push (limited to 'docker/parser') diff --git a/docker/parser/hooks/post_push b/docker/parser/hooks/post_push new file mode 100644 index 000000000..26a27dd6c --- /dev/null +++ b/docker/parser/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable" +docker push "${DOCKER_REPO}:stable" + +exit $? -- cgit 1.2.3-korg