update tests

This commit is contained in:
Merith-TK 2024-12-26 00:26:24 +00:00
parent 1e466136c9
commit 709e1518d6
2 changed files with 6 additions and 4 deletions

View file

@ -21,7 +21,7 @@ services:
git config user.name username ;
git commit -m demo ;
while : ; do
git push --set-upstream --force http://root:{ROOT_PASSWORD}@forgejo:3000/root/test main && break ;
git push --set-upstream --force http://root:ROOT_PASSWORD@forgejo:3000/root/test main && break ;
sleep 5 ;
done ;
sha=`git rev-parse HEAD` ;

View file

@ -13,7 +13,7 @@
#
# Replace ${RUNNER_TOKEN} with the token obtained from the Forgejo web interface.
#
# Replace {ROOT_PASSWORD} with a secure password.
# Replace ROOT_PASSWORD with a secure password.
#
volumes:
docker_certs:
@ -48,7 +48,7 @@ services:
bash -c '
/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 admin user create --admin --username root --password ROOT_PASSWORD --email root@example.com" git ;
su -c "forgejo forgejo-cli actions register --secret {SHARED_SECRET}" git ;
sleep infinity
'
@ -87,6 +87,8 @@ services:
DOCKER_HOST=tcp://docker:2376
DOCKER_TLS_VERIFY=1
DOCKER_CERT_PATH=/certs/client # defaults to empty
RUNNER__RUNNER__LABELS: |
"docker:docker://code.forgejo.org/oci/node:20-bookworm"
DEBUG: "true" # defaults to false, set to true to enable debug logging
DEBUG: "true" # defaults to false, set to true to enable debug logging in the entrypoint
SKIP_WAIT: "false" # defaults to false, set to true to skip the 10 second wait to allow for forgejo and docker-in-docker to start