Skip to content

Commit

Permalink
Fix docker build for pull requests
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Kouznetsov <dkouznetsov@pivotal.io>
  • Loading branch information
xtreme-mark-fioravanti authored and Daniil Kouznetsov committed May 28, 2018
1 parent 690d6ee commit 9822f79
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion ci/pipelines/pipeline.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
file: LicenseFinder/ci/tasks/build.yml
params:
RUBY_VERSION_UNDER_TEST: <%= ruby_version %>
USE_LOCAL_DOCKERFILE: true
<% if setup_slack %>
on_failure:
put: slack-alert
Expand Down
4 changes: 1 addition & 3 deletions ci/scripts/containerize-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ source /opt/resource/common.sh
start_docker 3 3

pushd LicenseFinder
if [ $USE_LOCAL_DOCKERFILE ]; then
docker build . -t licensefinder/license_finder
fi
docker build . -t licensefinder/license_finder

docker run -v $PWD:/lf -it licensefinder/license_finder /bin/bash \
-exlc "cd /lf && ci/scripts/run-tests.sh $RUBY_VERSION_UNDER_TEST"
Expand Down
1 change: 0 additions & 1 deletion ci/tasks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ run:

params:
RUBY_VERSION_UNDER_TEST:
USE_LOCAL_DOCKERFILE:

0 comments on commit 9822f79

Please sign in to comment.