File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ TMP_DIR=$(mktemp -d --tmpdir=$BUILD_DIR)
7171
7272cd $REPO_DIR
7373# extract git branch
74- git archive $BRANCH | tar -xC $TMP_DIR
74+ git archive $BRANCH | tar -xmC $TMP_DIR
7575
7676# switch to app context
7777cd $TMP_DIR
105105# if no Dockerfile is present, use slugbuilder to compile a heroku slug
106106# and write out a Dockerfile to use that slug
107107if [ ! -f Dockerfile ]; then
108- # FIXME: validate slugs were added correctly to the image
109- VALIDATE_IMAGE=1
108+
110109 # build option string to send to slugbuilder
111110 BUILD_OPTS=(" $CONFIG " )
112111
@@ -140,14 +139,6 @@ echo
140139puts-step " Building Docker image"
141140docker build -t $TMP_IMAGE . 2>&1
142141
143- # FIXME: validate Docker image to ensure slug is not malformed
144- if [[ $VALIDATE_IMAGE ]]; then
145- if [[ " $( docker history $TMP_IMAGE | grep ADD | head -n1 | awk {' print $11' }) " == " 0" ]]; then
146- puts-warn " Malformed Docker image, aborting build."
147- exit 1
148- fi
149- fi
150-
151142puts-step " Pushing image to private registry"
152143docker push $TMP_IMAGE & > /dev/null
153144echo
You can’t perform that action at this time.
0 commit comments