POC: Step/Gitlab Runner integration - Gitlab Runner
A very POC of integrating step-runner into runner's docker
executor. This MR roughly implements the runner side of the spec described in https://docs.gitlab.com/ee/architecture/blueprints/gitlab_steps/runner-integration.html for the docker executor only!!! It is intended to be used (and works) with step-runner!21.
Running the POC
- Check out this MRs branch
- Build the (updated) image here by running
make image
- Check out the branch in !4555, and ensure the
replace
directivereplace gitlab.com/gitlab-org/step-runner => ../steps/step-runner
ingo.mod
makes sense. - Create a job that uses the above image and executes some commands. I used the following job:
.gitlab-ci.yml
stages:
- test
test:
stage: test
image: step-runner:latest
script:
- neofetch
- ls -l
- pwd
artifacts:
paths:
- step-results.json
- Run runner:
go run . run -c <path/to/your/docker/executor/runner/config>
- Trigger the job/pipeline.
Saving the step results as an artifact does not work (see !4555 (540c904b))
Examining the code
The Code is best consumed commit-at-a-time. Commits have relevant messages.
Edited by Axel von Bertoldi