Skip to content

Commit

Permalink
Merge pull request #4 from jclaude75/add-build-dir-variable
Browse files Browse the repository at this point in the history
Add build dir variable
  • Loading branch information
digitalLumberjack authored Apr 26, 2018
2 parents d2f2177 + a720eb4 commit 6f0fbab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ENV RUNNER_DOCKER_MODE='socket'
ENV RUNNER_DOCKER_PRIVATE_REGISTRY_URL=''
ENV RUNNER_DOCKER_PRIVATE_REGISTRY_TOKEN=''
ENV RUNNER_DOCKER_ADDITIONAL_VOLUME=''
ENV RUNNER_DOCKER_BUILD_DIR='/builds'
ENV RUNNER_OUTPUT_LIMIT='4096'
ENV RUNNER_AUTOUNREGISTER='false'

Expand Down
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ configure_ci_runner() {
RUNNER_DOCKER_ARGS="$RUNNER_DOCKER_ARGS --docker-volumes ${VOLUME}"
done
fi
if [[ -n ${RUNNER_DOCKER_BUILD_DIR} ]];then
RUNNER_DOCKER_ARGS="$RUNNER_DOCKER_ARGS --builds-dir ${RUNNER_DOCKER_BUILD_DIR}"
fi
fi
sudo -HEu ${GITLAB_RUNNER_USER} \
gitlab-runner register --config ${GITLAB_RUNNER_DATA_DIR}/config.toml \
Expand Down

0 comments on commit 6f0fbab

Please sign in to comment.