Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

docker-cmd-file does not work as expected #794

Closed
bduisenov opened this issue Nov 11, 2023 · 3 comments
Closed

docker-cmd-file does not work as expected #794

bduisenov opened this issue Nov 11, 2023 · 3 comments

Comments

@bduisenov
Copy link

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

that 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
@viceice
Copy link
Member

viceice commented Nov 11, 2023

your shell script is probably not executable

@bduisenov
Copy link
Author

your shell script is probably not executable

❯ git ls-tree HEAD entrypoint.sh            
100755 blob 1da533fa330acd167d03a2d59fa24bb6f03fb620    entrypoint.sh

it is executable

@bduisenov
Copy link
Author

the issue is in github action configuration and not related to renovate at all. thanks for your help

@renovatebot renovatebot locked and limited conversation to collaborators Nov 11, 2023
@viceice viceice converted this issue into discussion #795 Nov 11, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants