This commit is contained in:
Hubert Cornet 2024-08-04 12:28:02 +02:00
parent d4f7b59ea0
commit 14927e67c2
3 changed files with 13 additions and 4 deletions

View File

@ -16,6 +16,9 @@ GITEA_HOSTNAME=gitea.traefik.me
GITEA_SHELL_SSH_PORT=2222
GITEA_HTTP_PORT=3000
# Gitea Variables
s=gitea/act_runner:latest
# Adminer Variables
ADMINER_IMAGE_TAG=adminer:latest

View File

@ -188,15 +188,16 @@ services:
runner:
container_name: gitea-runner
hostname: gitea-runner
image: gitea/act_runner:latest
image: ${GITEA_RUNNER_IMAGE_TAG}
environment:
- GITEA_INSTANCE_URL=${GITEA_HOSTNAME}
- GITEA_INSTANCE_URL=${GITEA_URL}
- GITEA_RUNNER_REGISTRATION_TOKEN=8CZ3Sd2VHITGIA1Xr2bo5j8l5Pj1EvTblTCeDmJU
restart: unless-stopped
networks:
- back_network
volumes:
- ./data-runner/act_runner:/data
- /etc/ssl/certs/:/etc/ssl/certs/
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
depends_on:

View File

@ -6,5 +6,10 @@ then
exit
fi
echo "Préparation de l'init du dossier et création ./init/initdb.sql"
docker run -e GITEA_INSTANCE_URL=https://gitea.traefik.me -e GITEA_RUNNER_REGISTRATION_TOKEN=<your_token> -v /var/run/docker.sock:/var/run/docker.sock --name my_runner gitea/act_runner:nightly
echo "Préparation des certificats pour Treafik.me"
wget -P /etc/ssl/certs/ http://traefik.me/cert.pem
wget -P /etc/ssl/certs/ http://traefik.me/chain.pem
wget -P /etc/ssl/certs/ http://traefik.me/fullchain.pem
echo "Reload certificats"
update-ca-certificates