From effe38ab1342f24c604ac6d4f69ef13227e3fbe9 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 14 Jul 2022 12:10:56 +0200
Subject: [PATCH] CI: run the built docker container and mount the repo

this makes it easier to debug CI things locally
---
 .gitlab-ci/build.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci/build.sh b/.gitlab-ci/build.sh
index b47afb7f..8c7eea39 100755
--- a/.gitlab-ci/build.sh
+++ b/.gitlab-ci/build.sh
@@ -3,4 +3,7 @@
 set -e
 TAG="registry.gitlab.tugraz.at/dbp/web-components/toolkit/main:v2"
 sudo docker build --tag "${TAG}" --file "Dockerfile" .
+sudo docker run --rm \
+    --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
+    --tty --interactive "${TAG}" bash
 echo "Now run: sudo docker push '$TAG'"
-- 
GitLab