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

refactor!: rename docker-cmd-file to docker-entrypoint-file #866

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

1oglop1
Copy link

@1oglop1 1oglop1 commented Oct 3, 2024

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.

@@ -43,9 +43,9 @@ inputs:
Only applicable when 'mount-docker-socket' is true.
required: false
default: /var/run/docker.sock
docker-cmd-file:
Copy link
Member

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

@viceice viceice marked this pull request as draft November 18, 2024 09:39
@1oglop1 1oglop1 requested a review from viceice November 24, 2024 22:40
@@ -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.
Copy link
Member

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)$`
Copy link
Member

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

Comment on lines +81 to +85
const cmdFile = core.getInput('docker-entrypoint-file');
const entryPointFile =
!!cmdFile && cmdFile !== ''
? cmdFile
: core.getInput('docker-entrypoint-file');
Copy link
Member

Choose a reason for hiding this comment

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

use a single variable

Comment on lines +87 to +89
return !!entryPointFile && entryPointFile !== ''
? path.resolve(entryPointFile)
: null;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return !!entryPointFile && entryPointFile !== ''
? path.resolve(entryPointFile)
: null;
return entryPointFile
? path.resolve(entryPointFile)
: null;

simplify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants