mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 23:28:32 +01:00
add: gitea & gitea-runner
This commit is contained in:
@@ -66,6 +66,8 @@
|
||||
- code-server
|
||||
- nginx-media-cdn
|
||||
- immich
|
||||
- gitea
|
||||
- gitea-runner
|
||||
|
||||
- name: Copy AtlantisHub config
|
||||
copy:
|
||||
@@ -120,6 +122,8 @@
|
||||
- serienampel
|
||||
- nginx-media-cdn
|
||||
- immich
|
||||
- gitea
|
||||
- gitea-runner
|
||||
|
||||
- name: Copy compose templates
|
||||
template:
|
||||
@@ -148,6 +152,8 @@
|
||||
- serienampel
|
||||
- nginx-media-cdn
|
||||
- immich
|
||||
- gitea
|
||||
- gitea-runner
|
||||
|
||||
- name: create sites-enabled dir
|
||||
file:
|
||||
@@ -208,6 +214,8 @@
|
||||
- serienampel
|
||||
- nginx-media-cdn
|
||||
- immich
|
||||
- gitea
|
||||
- gitea-runner
|
||||
|
||||
- name: OAuth2Proxy directories
|
||||
file:
|
||||
|
||||
14
roles/docker-deployments/templates/gitea-runner.yaml
Normal file
14
roles/docker-deployments/templates/gitea-runner.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
runner:
|
||||
image: gitea/act_runner:nightly
|
||||
environment:
|
||||
CONFIG_FILE: /config.yaml
|
||||
GITEA_INSTANCE_URL: "https://git.athq.de"
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: "{{ gitea_runner_registration_token }}"
|
||||
GITEA_RUNNER_NAME: "atlantis-runner"
|
||||
GITEA_RUNNER_LABELS: "ubuntu-latest,atlantis"
|
||||
volumes:
|
||||
- /data/gitea-runner/config.yaml:/config.yaml
|
||||
- /data/gitea-runner/data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
40
roles/docker-deployments/templates/gitea.yaml
Normal file
40
roles/docker-deployments/templates/gitea.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
version: "3"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
gitea-server:
|
||||
image: gitea/gitea:latest
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=db:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD={{ gitea_postgres_pw }}
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- /data/gitea/data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "5024:3000"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: postgres:14
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD={{ gitea_postgres_pw }}
|
||||
- POSTGRES_DB=gitea
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- /data/gitea/pg-data:/var/lib/postgresql/data
|
||||
Reference in New Issue
Block a user