github.com/spg/deis@v1.7.3/builder/rootfs/etc/confd/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: {{ getv "/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 {{ getv "/deis/controller/protocol" }}://{{ getv "/deis/controller/host" }}:{{ getv "/deis/controller/port" }}/v1/hooks/push >/dev/null