mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
run-docker: Do not require sudo if the user is part of docker group
This commit is contained in:
@@ -23,6 +23,8 @@ if docker -v |& grep -q podman; then
|
|||||||
# is incompatible with some of the dockerd instances on GitLab
|
# is incompatible with some of the dockerd instances on GitLab
|
||||||
# CI runners.
|
# CI runners.
|
||||||
export BUILDAH_FORMAT=docker
|
export BUILDAH_FORMAT=docker
|
||||||
|
elif getent group docker | grep -q "\b${USER}\b"; then
|
||||||
|
SUDO_CMD=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
Reference in New Issue
Block a user