Hello, I am really struggling to get drone-gitea-mkdocs containers to work
I configured the webhooks, but I keep gettin error 400 cannot parse webhook: Invalid webhook signature
.
My environment is really simple, this is the docker compose:
version: '3'
services:
mkdocs:
image: squidfunk/mkdocs-material
container_name: mkdocs
volumes:
- ./mkdocs:/docs
networks:
gitea-drone-network:
ipv4_address: 172.25.0.3
ports:
- "8000:8000"
stdin_open: true
tty: true
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
volumes:
- ./gitea:/data
networks:
gitea-drone-network:
ipv4_address: 172.25.0.2
ports:
- "3000:3000"
- "222:22"
restart: always
portainer:
image: portainer/portainer-ce
container_name: portainer
command: -H unix:///var/run/docker.sock
networks:
gitea-drone-network:
ipv4_address: 172.25.0.4
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
ports:
- "9080:9000"
drone-server:
image: drone/drone:latest
container_name: drone-server
ports:
- 82:80
- 443:443
volumes:
- ./drone-data:/data
restart: always
environment:
- DRONE_GITEA_SERVER=http://gitea:3000
- DRONE_GITEA_CLIENT_ID=3db59dba-93b1-43f7-add7-81a0dc849dc5
- DRONE_GITEA_CLIENT_SECRET=gto_vnipkdpscnms4akbp7abernauzawtleaekphamqtrzory7myqn7a
- DRONE_RPC_SECRET=gn5s8q7UPPA.7ia
- DRONE_SERVER_HOST=http://localhost:82
- DRONE_SERVER_PROTO=http
- DRONE_TLS_AUTOCERT=false
# Uncomment the following lines if using HTTPS
# - DRONE_TLS_CERT=/path/to/your/cert.pem
# - DRONE_TLS_KEY=/path/to/your/key.pem
networks:
gitea-drone-network:
ipv4_address: 172.25.0.5
drone-agent:
image: drone/agent:latest
container_name: drone-agent
depends_on:
- drone-server
restart: always
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-server
- DRONE_RPC_SECRET=gn5s8q7UPPA.7ia
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
gitea-drone-network:
ipv4_address: 172.25.0.6
volumes:
portainer_data:
networks:
gitea-drone-network:
external: true
I have one repo, which shows up correctly in drone, ad it is set as active.
I tried to delete and redo the webook, but I got no luck.
The drone server logs show:
time="2025-01-23T12:06:26Z" level=debug authtype=cookie fields.time="2025-01-23T12:06:26Z" latency="262.596µs" method=GET remote="192.168.55.6:58016" request=/api/user request-id=2s1raekHqqW5D3WLOfHhL9029gp
time="2025-01-23T12:06:34Z" level=debug msg="api: root access granted" name=docascode_01 namespace=docascode request-id=2s1rbgXQmc8wetpmL7OEqK7Cnl3 user.admin=true user.login=docascode
time="2025-01-23T12:06:34Z" level=debug authtype=cookie fields.time="2025-01-23T12:06:34Z" latency="631.976µs" method=GET remote="192.168.55.6:58016" request="/api/repos/docascode/docascode_01/builds?page=1&per_page=50" request-id=2s1rbgXQmc8wetpmL7OEqK7Cnl3
time="2025-01-23T12:06:34Z" level=debug msg="api: root access granted" name=docascode_01 namespace=docascode request-id=2s1rbe1h9dpBePs0fBcUuLf2ylp user.admin=true user.login=docascode
and
time="2025-01-23T12:07:41Z" level=debug msg="manager: request queue item" arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
time="2025-01-23T12:07:41Z" level=debug msg="manager: request queue item" arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
time="2025-01-23T12:07:56Z" level=debug msg="webhook parsed" commit=983434071f0f2efe22ef1e76cac9caa9375bdd5f event=push name=docascode_01 namespace=docascode
time="2025-01-23T12:07:56Z" level=debug msg="trigger: received" commit=983434071f0f2efe22ef1e76cac9caa9375bdd5f event=push ref=refs/heads/main repo=docascode/docascode_01
time="2025-01-23T12:08:01Z" level=debug msg="cannot parse webhook: Invalid webhook signature"
time="2025-01-23T12:08:01Z" level=debug authtype=cookie fields.time="2025-01-23T12:08:01Z" latency="486.144µs" method=POST remote="172.25.0.1:57544" request=/hook request-id=2s1rmcO7ddCMTnfv4ZOdE744YAO
time="2025-01-23T12:08:10Z" level=debug msg="manager: context canceled" arch=amd64 kernel= kind=pipeline os=linux type=docker variant=
and, finally
time="2025-01-23T11:58:54Z" level=warning msg="trigger: cannot find yaml" commit=fc2f362b78dabacd2bc7f2e647a3c80b9d25eb3c error="Not Found" event=push ref=refs/heads/main repo=docascode/docascode_01
the file .drone.yml
is present in the root of the repo.
I am lost and do not know what else to try