-
Notifications
You must be signed in to change notification settings - Fork 84
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
refactor!: rename docker-cmd-file to docker-entrypoint-file #866
base: main
Are you sure you want to change the base?
Conversation
BREAKING CHANGE: input parameter `docker-cmd-file` is now `docker-entrypoint-file`
@@ -43,9 +43,9 @@ inputs: | |||
Only applicable when 'mount-docker-socket' is true. | |||
required: false | |||
default: /var/run/docker.sock | |||
docker-cmd-file: |
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.
please add docker-cmd-file
as deprecated input for now but don't document in readme. So we're backward compatible
@@ -183,6 +182,7 @@ If you want to use the `github-actions` manager, you must setup a [special token | |||
The Renovate Docker image name to use. | |||
If omitted or `renovate-image === ''` the action will use the `ghcr.io/renovatebot/renovate` Docker image name otherwise. | |||
If a Docker image name is defined, the action will use that name to pull the image. | |||
Note: Use only the image name without a tag, [`renovate-version`](#renovate-version) is used as the image tag. |
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.
unrelated, please open a separate PR
@@ -19,15 +19,15 @@ inputs: | |||
env-regex: | |||
description: | | |||
Override the environment variables which will be passsed into the renovate container. | |||
Defaults to `^(?:RENOVATE_\\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$` | |||
Defaults to `^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$` |
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.
don't change unrelated things
const cmdFile = core.getInput('docker-entrypoint-file'); | ||
const entryPointFile = | ||
!!cmdFile && cmdFile !== '' | ||
? cmdFile | ||
: core.getInput('docker-entrypoint-file'); |
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.
use a single variable
return !!entryPointFile && entryPointFile !== '' | ||
? path.resolve(entryPointFile) | ||
: null; |
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.
return !!entryPointFile && entryPointFile !== '' | |
? path.resolve(entryPointFile) | |
: null; | |
return entryPointFile | |
? path.resolve(entryPointFile) | |
: null; |
simplify
This should address the comment #817 (comment)
This is a breaking change and requires a major release.
I am open to changing it to non-breaking change if maintainers wish so.