mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
304f84ba46
Someone uploaded a v9 image to the registry without updating the CI YAML. Signed-off-by: Philip Withnall <withnall@endlessm.com>
18 lines
392 B
Bash
Executable File
18 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
TAG="registry.gitlab.gnome.org/gnome/glib/master:v9"
|
|
|
|
docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" \
|
|
--file "Dockerfile" .
|
|
|
|
if [ "$1" = "--push" ]; then
|
|
docker login registry.gitlab.gnome.org
|
|
docker push $TAG
|
|
else
|
|
docker run --rm \
|
|
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
|
|
--tty --interactive "${TAG}" bash
|
|
fi
|