My builds are failing at the clone step with the following output:
1 Initialized empty Git repository in /drone/src/.git/ 2 + git fetch origin +refs/heads/master: 3 fatal: unable to access 'https://github.com/gettooru/Receipt-OCR-Function.git/': Could not resolve host: github.com
The repository is private but I have granted oAuth access to it.
I also made sure that I can ping github.com from my traefik network.
#drone drone: image: drone/drone:2.0.4 container_name: drone hostname: drone restart: unless-stopped depends_on: - postgres environment: DRONE_GITHUB_CLIENT_ID: "" DRONE_GITHUB_CLIENT_SECRET: "" DRONE_RPC_SECRET: "" DRONE_SERVER_HOST: " DRONE_SERVER_PROTO: "https" DRONE_DATABASE_DRIVER: "postgres" DRONE_DATABASE_DATASOURCE: "postgres://@postgres:5432/drone?sslmode=disable" DRONE_GIT_ALWAYS_AUTH: "true" networks: - traefik-network volumes: - drone-data:/data #drone runner drone-runner-1: image: drone/drone-runner-docker:1.6.3 container_name: drone-runner-1 hostname: drone-runner-1 restart: unless-stopped environment: DRONE_RPC_HOST: "drone" DRONE_RPC_PROTO: "http" DRONE_RPC_SECRET: "" DRONE_RUNNER_CAPACITY: "2" DRONE_RUNNER_NAME: "main-runner" DRONE_RUNNER_NETWORKS: "traefik" networks: - traefik-network volumes: - /var/run/docker.sock:/var/run/docker.sock # networks networks: traefik-network: external: true name: traefik
I tried setting the DRONE_RUNNER_NETWORKS variable to traefik-network but that didn’t work either, but they should both be the same network, right?