From 4108e6a707b39872be8714d6e54984a93f920413 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Wed, 27 Sep 2017 21:07:58 +0200 Subject: [PATCH] Add post_push hooks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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/components/hooks/post_push | 8 ++++++++ docker/core/hooks/post_push | 8 ++++++++ docker/features/hooks/post_push | 8 ++++++++ docker/healthcheck/hooks/post_push | 8 ++++++++ docker/parser/hooks/post_push | 8 ++++++++ docker/restapi/hooks/post_push | 8 ++++++++ docker/smoke/hooks/post_push | 8 ++++++++ docker/vnf/hooks/post_push | 8 ++++++++ 8 files changed, 64 insertions(+) create mode 100644 docker/components/hooks/post_push create mode 100644 docker/core/hooks/post_push create mode 100644 docker/features/hooks/post_push create mode 100644 docker/healthcheck/hooks/post_push create mode 100644 docker/parser/hooks/post_push create mode 100644 docker/restapi/hooks/post_push create mode 100644 docker/smoke/hooks/post_push create mode 100644 docker/vnf/hooks/post_push diff --git a/docker/components/hooks/post_push b/docker/components/hooks/post_push new file mode 100644 index 000000000..26a27dd6c --- /dev/null +++ b/docker/components/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable" +docker push "${DOCKER_REPO}:stable" + +exit $? diff --git a/docker/core/hooks/post_push b/docker/core/hooks/post_push new file mode 100644 index 000000000..26a27dd6c --- /dev/null +++ b/docker/core/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable" +docker push "${DOCKER_REPO}:stable" + +exit $? diff --git a/docker/features/hooks/post_push b/docker/features/hooks/post_push new file mode 100644 index 000000000..26a27dd6c --- /dev/null +++ b/docker/features/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable" +docker push "${DOCKER_REPO}:stable" + +exit $? 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 $? 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 $? diff --git a/docker/restapi/hooks/post_push b/docker/restapi/hooks/post_push new file mode 100644 index 000000000..26a27dd6c --- /dev/null +++ b/docker/restapi/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable" +docker push "${DOCKER_REPO}:stable" + +exit $? diff --git a/docker/smoke/hooks/post_push b/docker/smoke/hooks/post_push new file mode 100644 index 000000000..26a27dd6c --- /dev/null +++ b/docker/smoke/hooks/post_push @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable" +docker push "${DOCKER_REPO}:stable" + +exit $? 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 $? -- 2.16.6