Repository navigation
docker-cmd-file does not work as expected #794
Copy link
Copy link
Closed
Description
Specifying docker-cmd-file: .github/entrypoint.sh results into the following docker command
/usr/bin/docker run --env NEXUS_USERNAME --env NEXUS_PASSWORD --env LOG_LEVEL --env RENOVATE_NEXUS_BASIC_AUTH_TOKEN --env RENOVATE_REPOSITORIES --env RENOVATE_GIT_AUTHOR --env RENOVATE_TOKEN=*** --env RENOVATE_CONFIG_FILE=/github-action/renovate-config.js --volume /home/runner/work/***/.github/renovate-config.js:/github-action/renovate-config.js --volume /home/runner/work/***/.github/entrypoint.sh:/entrypoint.sh --volume /tmp:/tmp --rm ghcr.io/renovatebot/renovate:latest /entrypoint.shthat in turn fails with
INFO: Repository started (repository=/entrypoint.sh)
"renovateVersion": "37.56.3"
DEBUG: Using localDir: /tmp/renovate/repos/github/entrypoint.sh (repository=/entrypoint.sh)
DEBUG: PackageFiles.clear() - Package files deleted (repository=/entrypoint.sh)
DEBUG: initRepo("/entrypoint.sh") (repository=/entrypoint.sh)
DEBUG: Unexpected Graph QL errors (repository=/entrypoint.sh)
"res": {
"data": {"repository": null},
"errors": [
{
"type": "NOT_FOUND",
"path": ["repository"],
"locations": [{"line": 3, "column": 3}],
"message": "Could not resolve to a Repository with the name '/entrypoint.sh'."
}
]
}
DEBUG: Caught initRepo error (repository=/entrypoint.sh)
"err": {
"message": "platform-unknown-error",
"stack": "Error: platform-unknown-error\n at Proxy.initRepo (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/modules/platform/github/index.ts:483:13)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at getPlatformConfig (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/init/apis.ts:80:26)\n at initApis (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/init/apis.ts:92:12)\n at initRepo (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/init/index.ts:50:12)\n at Object.renovateRepository (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/index.ts:55:14)\n at attributes.repository (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/global/index.ts:[184](https://github.com/***/actions/runs/6834040325/job/18586413351#step:5:185):11)\n at start (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/global/index.ts:169:7)\n at /opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/renovate.ts:18:22"
}
DEBUG: Unknown GitHub initRepo error (repository=/entrypoint.sh)
"err": {
"message": "platform-unknown-error",
"stack": "Error: platform-unknown-error\n at Proxy.initRepo (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/modules/platform/github/index.ts:483:13)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at getPlatformConfig (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/init/apis.ts:80:26)\n at initApis (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/init/apis.ts:92:12)\n at initRepo (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/init/index.ts:50:12)\n at Object.renovateRepository (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/repository/index.ts:55:14)\n at attributes.repository (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/global/index.ts:184:11)\n at start (/opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/workers/global/index.ts:169:7)\n at /opt/containerbase/tools/renovate/37.56.3/node_modules/renovate/lib/renovate.ts:18:22"
}
ERROR: Repository has unknown error (repository=/entrypoint.sh)
"err": {
"message": "platform-unknown-error",
"stack": "Error: platform-unknown-error\n at Proxy.initRepo
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Priority
None yet
Datasource
None yet
Activity
viceice commentedon Nov 11, 2023
your shell script is probably not executable
bduisenov commentedon Nov 11, 2023
it is executable
bduisenov commentedon Nov 11, 2023
the issue is in github action configuration and not related to renovate at all. thanks for your help