blob: 486a7a433a8e0f068619258007d98a7897f53304 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
set -e
TAG="registry.gitlab.gnome.org/gnome/libsoup/master:v6"
cd "$(dirname "$0")"
podman build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" --file "Dockerfile" --format=docker .
if [ "$1" = "--push" ]; then
podman login registry.gitlab.gnome.org
podman push $TAG
else
podman run --rm \
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
--tty --interactive "${TAG}" bash
fi
|