Skip to content

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.

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
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

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