Docker/Repository/Gitea/prepare.sh
2024-08-03 18:33:21 +02:00

10 lines
390 B
Bash

#!/bin/sh
if ! (docker ps >/dev/null 2>&1)
then
echo "Le daemon docker n'est pas en cours d'exécution, sortie !"
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