Adding support for self-managed GitLab instances #21274
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This MR resolves this issue by adding a config option for
gitlab_host
. The option defaults to the gitlab.com host, but can be configured for folks running self-managed gitlab instances.Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validci/circleci
builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)Motivation and Context
The first iteration of the gitlab_secure_files storage backend only supported gitlab.com since that feature wasn't available for self managed instances. It's now been available for several months, so it's about time we added support here as well. This limitation was also reported in #21197.
Description
This change adds an additional configuration set to the
match init
process and adds thegitlab_host
option to theMatchfile
Testing Steps
You can test this change by running
fastlane match init
and verifying that thegitlab_host
option is written to theMatchfile
The configuration is also printed in the output when running
fastlane match
. For example: