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

Customize work directory #3477

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Conversation

sergelogvinov
Copy link
Contributor

Is simple patch allows us to customize the working directory during gh-worker registration.

Sometimes I need to change the work directory to pull/store large files on build process.

Thanks.

@sergelogvinov
Copy link
Contributor Author

Hello @nikola-jokic can you take a look please...

Thanks.

@sergelogvinov sergelogvinov force-pushed the workdir branch 2 times, most recently from d12f7c4 to 920cf6b Compare May 10, 2024 11:28
@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Jun 4, 2024
@@ -521,6 +521,14 @@ func (r *EphemeralRunnerReconciler) updateStatusWithRunnerConfig(ctx context.Con
jitSettings := &actions.RunnerScaleSetJitRunnerSetting{
Name: ephemeralRunner.Name,
}

for c := range ephemeralRunner.Spec.Spec.Containers {
Copy link
Member

Choose a reason for hiding this comment

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

Can you please rename c to i? c sounds like a container, while i is usually variable associated with iterations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, thanks, fixed.

It allows us to customize the working directory during worker registration.
Copy link
Member

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for your contribution, and sorry for waiting!

@nikola-jokic nikola-jokic merged commit e45ac19 into actions:master Jun 4, 2024
15 checks passed
@sergelogvinov sergelogvinov deleted the workdir branch June 4, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants