Skip to content

exec: Allow user to specify an alternative location for .gitlab-ci.yml

What does this MR do?

This allows a user to specify an alternative location to .gitlab-ci.yml.

Example:

$ gitlab-runner exec docker build --config debian/gitlab-ci.yml

Why was this MR needed?

I like to test locally before pushing changes, in some repositories the CI config file is different. A this is supported by the CI server in GitLab, the user should be able to specify an alternative path, without the need to copy or symlink the file.

Are there points in the code the reviewer needs to double check?

Should I mention this in the documentation? Currently no flags are documented.

As there are no specific tests for the exec command, I didn't add tests.

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

None

Merge request reports