#!/bin/bash

set -e

TAG="registry.gitlab.gnome.org/gnome/glib-networking/master:v5"

cd "$(dirname "$0")"

podman build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" .

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

#!/bin/bash

set -e

TAG="registry.gitlab.gnome.org/gnome/glib-networking/master:v4"

cd "$(dirname "$0")"

sudo docker build --build-arg HOST_USER_ID="$UID" --tag "${TAG}" --file "Dockerfile" .

if [ "$1" = "--push" ]; then
  sudo docker login registry.gitlab.gnome.org
  sudo docker push $TAG
else
  sudo docker run --rm \
      --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
      --tty --interactive "${TAG}" bash
fi

Revert "ci: docker -> podman"
Revert "ci: docker -> podman"

This reverts commit 1590ea82d8ccbb65628a4379a3e55564d681090c.
