Commit ca9beef0 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Manually clean-up the gitlab-runner directory

This makes sure the patch applies cleanly on each build.
parent 6787dfd7
......@@ -30,7 +30,8 @@ source :git => "https://gitlab.com/gitlab-org/gitlab-ci-runner.git"
build do
# Patch the source code to allow for working directories other than
# /opt/gitlab-runner/embedded/service/gitlab-runner
patch source: 'working-directory-switch.diff'
command 'git checkout -- .'
patch source: 'working-directory-switch.diff', plevel: 1
 
env = with_standard_compiler_flags(with_embedded_path)
bundle "install --jobs #{workers} --path=#{install_dir}/embedded/service/gem", env: env
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment