From a2e8fb0c26ecb57278356b489d2d8460869d2467 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Mon, 6 Mar 2017 15:05:51 -0800 Subject: [PATCH] Trigger build of docs-base after successful build of archive branch --- hooks/post_push | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 hooks/post_push diff --git a/hooks/post_push b/hooks/post_push new file mode 100755 index 0000000000..13b4e7d2dc --- /dev/null +++ b/hooks/post_push @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +# If this is an archive branch (like v1.4 or v1.11), +# build and push the docs-base branch at the end of +# a successful build of the branch + +if [[ $SOURCE_BRANCH == ^v1\.[0-9]+$ ]]; then + git checkout docs-base + docker build -t docs/docker.github.io:docs-base . + docker push docs/docker.github.io:docs-base +fi