-
Notifications
You must be signed in to change notification settings - Fork 80
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 docker-socket-host-path
input
#862
Conversation
src/input.ts
Outdated
@@ -73,6 +73,10 @@ class Input { | |||
return core.getInput('mount-docker-socket') === 'true'; | |||
} | |||
|
|||
dockerSocketHostPath(): string { | |||
return core.getInput('docker-socket-host-path'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validate existence
src/renovate.ts
Outdated
const dockerSocketStat = await fs.stat(this.input.dockerSocketHostPath()); | ||
return dockerSocketStat.gid.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this gets merged, I'll create a separate PR that leverages the stat done as part of verification to also get the gid.
- Adds `docker-socket-host-path` input, allowing users to override the location of the docker socket on their host. Defaults to `/var/run/docker.sock`.
8263fc6
to
328efab
Compare
Any additional thoughts, @viceice? |
##### [`vv40.3.0](https://github.com/renovatebot/github-action/releases/tag/v40.3.0) ##### Features - add `docker-socket-host-path` input ([#862](renovatebot/github-action#862)) ([c0afe86](renovatebot/github-action@c0afe86))
##### [`vv40.3.0](https://github.com/renovatebot/github-action/releases/tag/v40.3.0) ##### Features - add `docker-socket-host-path` input ([#862](renovatebot/github-action#862)) ([c0afe86](renovatebot/github-action@c0afe86))
##### [`vv40.3.0](https://github.com/renovatebot/github-action/releases/tag/v40.3.0) ##### Features - add `docker-socket-host-path` input ([#862](renovatebot/github-action#862)) ([c0afe86](renovatebot/github-action@c0afe86))
docker-socket-host-path
input, allowing users to override the location of the docker socket on their host. Defaults to/var/run/docker.sock
.