Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (22 sloc) 0.685 kb
#!/bin/sh
#
# Cloud Hook: post-code-deploy
#
# The post-code-deploy hook is run whenever you use the Workflow page to
# deploy new code to an environment, either via drag-drop or by selecting
# an existing branch or tag from the Code drop-down list. See
# ../README.md for details.
#
# Usage: post-code-deploy site target-env source-branch deployed-tag repo-url
# repo-type
site="$1"
target_env="$2"
source_branch="$3"
deployed_tag="$4"
repo_url="$5"
repo_type="$6"
if [ "$source_branch" != "$deployed_tag" ]; then
echo "$site.$target_env: Deployed branch $source_branch as $deployed_tag."
else
echo "$site.$target_env: Deployed $deployed_tag."
fi
Jump to Line
Something went wrong with that request. Please try again.