Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add clone_url to config.toml #516

Merged
merged 2 commits into from
Jul 20, 2022

Conversation

kayman-mk
Copy link
Collaborator

@kayman-mk kayman-mk commented Jul 9, 2022

Description

Adds the missing parameter clone_url to the config.toml of the runner. In case the default clone URL from the GitLab project is not accessible from the runner's infrastructure (e.g. private DNS), the clone_url can be used to specify a different one (e.g. replace the private DNS entry by a public IP address).

Check the configuration docs for the runner.

Migrations required

No.

Verification

  • Deploy infrastructure without clone_url. Check that the runner can register and config.toml shows an empty clone_url. Ensure that jobs are still processed as we didn't have a clone_url in the config before.
  • Deploy infrastructure with clone_url. Check that the runner can register and config.toml shows the mentioned clone_url.

I check this within the Hapag-Lloyd GitLab Runner infrastructure.

Copy link
Collaborator

@npalm npalm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will run later today a quick test. Catching up with the PRs

@npalm npalm merged commit 9a41525 into cattle-ops:develop Jul 20, 2022
semantic-releaser bot pushed a commit that referenced this pull request Jul 20, 2022
## [5.1.0](5.0.2...5.1.0) (2022-07-20)

### Features

* add `clone_url` to `config.toml` ([#516](#516)) ([9a41525](9a41525))
* Tag aws_cloudwatch_event_rule resource + linting ([#519](#519)) ([f2e98bb](f2e98bb))

### Bug Fixes

* Make statement IDs unique ([#503](#503)) ([05055c0](05055c0))
@semantic-releaser
Copy link
Contributor

🎉 This PR is included in version 5.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@veshant
Copy link
Contributor

veshant commented Sep 27, 2022

Using this method has an issue with ssl certificates that don't have the clone url. Is there a way to have the dns resolve to a different ip address instead? I have tried to append records to the hosts file, but it only does in the container and not the runner machine.

@kayman-mk kayman-mk deleted the kayma/clone-url branch October 13, 2022 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants