Add post_push hooks 55/43355/3
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 27 Sep 2017 19:07:58 +0000 (21:07 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 27 Sep 2017 21:29:14 +0000 (23:29 +0200)
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>
docker/components/hooks/post_push [new file with mode: 0644]
docker/core/hooks/post_push [new file with mode: 0644]
docker/features/hooks/post_push [new file with mode: 0644]
docker/healthcheck/hooks/post_push [new file with mode: 0644]
docker/parser/hooks/post_push [new file with mode: 0644]
docker/restapi/hooks/post_push [new file with mode: 0644]
docker/smoke/hooks/post_push [new file with mode: 0644]
docker/vnf/hooks/post_push [new file with mode: 0644]

diff --git a/docker/components/hooks/post_push b/docker/components/hooks/post_push
new file mode 100644 (file)
index 0000000..26a27dd
--- /dev/null
@@ -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 (file)
index 0000000..26a27dd
--- /dev/null
@@ -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 (file)
index 0000000..26a27dd
--- /dev/null
@@ -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 (file)
index 0000000..26a27dd
--- /dev/null
@@ -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 (file)
index 0000000..26a27dd
--- /dev/null
@@ -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 (file)
index 0000000..26a27dd
--- /dev/null
@@ -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 (file)
index 0000000..26a27dd
--- /dev/null
@@ -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 (file)
index 0000000..26a27dd
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -e
+
+docker tag "${IMAGE_NAME}" "${DOCKER_REPO}:stable"
+docker push "${DOCKER_REPO}:stable"
+
+exit $?