seat-back-trivia/pipeline/head This commit looks good
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
917 B
YAML
37 lines
917 B
YAML
# Inbound Jenkins agent for the delivery stages. The Docker socket makes this
|
|
# container equivalent to host root, so only reviewed main-branch stages use its
|
|
# credentials. DOCKER_GID and JENKINS_SECRET come from an untracked .env file.
|
|
name: jenkins-agent
|
|
|
|
services:
|
|
agent:
|
|
build: .
|
|
restart: unless-stopped
|
|
environment:
|
|
- JENKINS_URL=http://jenkins:8080
|
|
- JENKINS_AGENT_NAME=delivery-agent
|
|
- JENKINS_SECRET=${JENKINS_SECRET}
|
|
- JENKINS_WEB_SOCKET=true
|
|
- JAVA_OPTS=-Xmx96m
|
|
group_add:
|
|
- "${DOCKER_GID}"
|
|
volumes:
|
|
- agent-data:/home/jenkins/agent
|
|
- trivy-cache:/home/jenkins/.cache/trivy
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
networks:
|
|
- gitea-net
|
|
logging:
|
|
options:
|
|
max-size: 10m
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
agent-data:
|
|
trivy-cache:
|
|
|
|
networks:
|
|
gitea-net:
|
|
external: true
|
|
name: gitea_gitea-net
|