renovatebot / github-action

Other
289 stars 80 forks source link

Communication with service containers doesn't work #852

Closed taraspos closed 4 months ago

taraspos commented 4 months ago

Summary

When service container^1 is defined, renovate cannot communicate with it, because they are on different networks.

Github documentation says:

When you run jobs in a container, GitHub connects service containers to the job using Docker's user-defined bridge networks. For more information, see "Use bridge networks" in the Docker documentation. ^2

However it seems like container started by renovatebot github actions is not on the same network.

Logs from creation of service container:

/usr/bin/docker create --name 449e22afd9af4c28932dba893b2ce8f4_caddyalpine_8cfb70 --label c60961 --network github_network_ba93aacc547f4faca1a34c263123d4ec --network-alias fileserver -p 80:80 -e GITHUB_ACTIONS=true -e CI=true -v "/tmp/versions/":"/usr/share/caddy/versions/" caddy:alpine

Logs from creation of renovate container:

/usr/bin/docker run --env RENOVATE_VERSION --env RENOVATE_REPOSITORIES --env RENOVATE_DRY_RUN --env LOG_LEVEL --env RENOVATE_TOKEN=*** --rm ghcr.io/renovatebot/renovate:37.414.0