github.com/misfo/deis@v1.0.1-0.20141111224634-e0eee0392b8a/builder/templates/receiver (about) 1 #!/bin/bash 2 set -eo pipefail 3 4 repository=$1 5 app=${1%.git} 6 sha=$2 7 username=$3 8 fingerprint=$4 9 10 curl \ 11 -X 'POST' --fail \ 12 -H 'Content-Type: application/json' \ 13 -H "X-Deis-Builder-Auth: {{ .deis_controller_builderKey }}" \ 14 -d "{\"receive_user\": \"$username\", \"receive_repo\": \"$app\", \"sha\": \"$sha\", \"fingerprint\": \"$fingerprint\", \"ssh_connection\": \"$SSH_CONNECTION\", \"ssh_original_command\": \"$SSH_ORIGINAL_COMMAND\"}" \ 15 --silent http://{{ .deis_controller_host }}:{{ .deis_controller_port }}/v1/hooks/push >/dev/null