finally working?

I just nuked the env-init...
This commit is contained in:
Merith-TK 2024-12-27 01:54:36 +00:00
parent 048450dee9
commit f49abe6713
3 changed files with 7 additions and 34 deletions

View file

@ -6,7 +6,7 @@
#
# openssl rand -hex 20
#
# Replace all occurences of 02f8e8ed1bd08d55338026d04b5513684ff23c1f below with the output.
# Replace all occurences of {SHARED_SECRET} below with the output.
#
# NOTE: a token obtained from the Forgejo web interface cannot be used
# as a shared secret.
@ -49,7 +49,7 @@ services:
/bin/s6-svscan /etc/s6 &
sleep 10 ;
su -c "forgejo admin user create --admin --username root --password ROOT_PASSWORD --email root@example.com" git ;
su -c "forgejo forgejo-cli actions register --secret 02f8e8ed1bd08d55338026d04b5513684ff23c1f" git ;
su -c "forgejo forgejo-cli actions register --secret {SHARED_SECRET}" git ;
sleep infinity
'
@ -75,13 +75,15 @@ services:
- docker-in-docker
environment:
FORGEJO_URL: ${FORGEJO_URL} # defaults to http://forgejo:3000
FORGEJO_SECRET: "02f8e8ed1bd08d55338026d04b5513684ff23c1f" # shared secret, must match Forgejo's, overrides RUNNER_TOKEN
FORGEJO_SECRET: "{SHARED_SECRET}" # shared secret, must match Forgejo's, overrides RUNNER_TOKEN
RUNNER_TOKEN: ${RUNNER_TOKEN} # token obtained from Forgejo web interface
# Docker Daemon Configs, needed for docker-in-docker
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: /certs/client
# Runner Configs
RUNNER__log__LEVEL: "debug"
RUNNER__container__PRIVILEGED: "true"
RUNNER__runner__LABELS: |
@ -89,4 +91,3 @@ services:
DEBUG: "true"
SKIP_WAIT: "false"
SLEEP_DEBUG: "false" # toggles wether to sleep indefinitely after starting the runner