| #!/bin/bash |
| # Builds and uploads a container that proxies web traffic while enforcing IAP. |
| set -x -e |
| |
| APPNAME=continuous-deploy |
| |
| # Copy files into the right locations in ${ROOT}. |
| copy_release_files() |
| { |
| INSTALL="install -D --verbose" |
| ${INSTALL} --mode=644 -T ${APPNAME}/Dockerfile ${ROOT}/Dockerfile |
| ${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME} |
| ${INSTALL} --mode=755 -T ${GOPATH}/bin/pushk ${ROOT}/usr/local/bin/pushk |
| ${INSTALL} --mode=644 -T ./clusters/config.json ${ROOT}/etc/continuous-deploy/config.json |
| } |
| |
| source ../bash/docker_build.sh |