This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/roles/woodpecker/vars/main.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2023-12-13 01:43:15 +00:00
---
2023-12-14 01:20:13 +00:00
woodpecker_svc:
2023-12-13 01:43:15 +00:00
domain: ci.serguzim.me
2023-12-11 01:26:23 +00:00
name: woodpecker
port: 8000
extra_svcs:
2023-12-13 01:43:15 +00:00
- domain: agents.ci.serguzim.me
docker_host: h2c://woodpecker
port: 9000
2023-12-11 01:26:23 +00:00
db:
host: "{{ postgres.host }}"
port: "{{ postgres.port }}"
database: woodpecker
user: "{{ vault_woodpecker.db.user }}"
pass: "{{ vault_woodpecker.db.pass }}"
2023-12-14 01:20:13 +00:00
woodpecker_env:
2023-12-11 01:26:23 +00:00
WOODPECKER_OPEN: true
2023-12-13 01:43:15 +00:00
WOODPECKER_HOST: https://{{ svc.domain }}
WOODPECKER_ADMIN: serguzim
2023-12-11 01:26:23 +00:00
WOODPECKER_AGENT_SECRET: "{{ vault_woodpecker.agent_secret }}"
WOODPECKER_PROMETHEUS_AUTH_TOKEN: "{{ vault_metrics_token }}"
WOODPECKER_SERVER: "{{ svc.extra_svcs[0].domain }}:443"
WOODPECKER_GRPC_SECURE: true
WOODPECKER_GITEA: true
2023-12-13 01:43:15 +00:00
WOODPECKER_GITEA_URL: https://git.serguzim.me
2023-12-11 01:26:23 +00:00
WOODPECKER_GITEA_CLIENT: "{{ vault_woodpecker.gitea.client }}"
WOODPECKER_GITEA_SECRET: "{{ vault_woodpecker.gitea.secret }}"
2023-12-13 01:43:15 +00:00
WOODPECKER_DATABASE_DRIVER: postgres
WOODPECKER_DATABASE_DATASOURCE: postgres://{{ svc.db.user }}:{{ svc.db.pass }}@{{ svc.db.host }}:{{ svc.db.port }}/{{ svc.db.database }}?sslmode=verify-full
2023-12-11 01:26:23 +00:00
2023-12-14 01:20:13 +00:00
woodpecker_compose:
2023-12-11 01:26:23 +00:00
watchtower: true
image: woodpeckerci/woodpecker-server
file:
services:
agent:
image: woodpeckerci/woodpecker-agent:latest
restart: always
labels:
com.centurylinklabs.watchtower.enable: true
command: agent
env_file:
- service.env
depends_on:
- app
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
default: