Merge branch 'fix_config' into 'main'

Fix registration permission denied

Closes #1

See merge request qontainers/pipglr!20
This commit is contained in:
Chris Evich
2023-02-03 16:36:36 +00:00

View File

@@ -43,7 +43,7 @@ ARG NESTED_PRIVILEGED=true
# may be changed if you know what you're doing.
LABEL register="podman run -it --rm \
--secret=REGISTRATION_TOKEN,type=env \
-v ./config.toml:/home/runner/.gitlab-runner/config.toml:Z \
-v ./config.toml:/etc/gitlab-runner/config.toml:Z \
-e REGISTER_NON_INTERACTIVE=true \
-e CI_SERVER_URL=https://gitlab.com/ \
-e RUNNER_NAME=pipglr \
@@ -56,7 +56,6 @@ LABEL register="podman run -it --rm \
-e DOCKER_VOLUMES=/cache \
-e DOCKER_NETWORK_MODE=host \
-e DOCKER_PRIVILEGED=${NESTED_PRIVILEGED} \
--user runner \
--entrypoint=/usr/bin/gitlab-runner \$IMAGE register"
# Additionally, the nested-podman storage volumes must be pre-created with
# 'podman' UID/GID values to allow nested containers access.