Skip to content

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

Closed

Description

@bduisenov

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

Activity

  1. viceice commented on Nov 11, 2023

    @viceice
    Member

    your shell script is probably not executable

  2. bduisenov commented on Nov 11, 2023

    @bduisenov
    Author

    your shell script is probably not executable

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

    it is executable

  3. bduisenov commented on Nov 11, 2023

    @bduisenov
    Author

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

  4. locked and limited conversation to collaborators on Nov 11, 2023
  5. converted this issue into a discussion #795 on Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Datasource

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions