mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
run-docker: Do not require sudo if the user is part of docker group
This commit is contained in:
parent
3ddfb10b0b
commit
d6a378afa7
@ -23,6 +23,8 @@ if docker -v |& grep -q podman; then
|
||||
# is incompatible with some of the dockerd instances on GitLab
|
||||
# CI runners.
|
||||
export BUILDAH_FORMAT=docker
|
||||
elif getent group docker | grep -q "\b${USER}\b"; then
|
||||
SUDO_CMD=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
Loading…
Reference in New Issue
Block a user