From 50ac764628c87c258545f3fcf6ad97940632e186 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 26 Feb 2022 20:04:29 +0200
Subject: [PATCH] Fixup for getting the container ID.

I think it's because of enabling Systemd's unified cgroup hierarchy in
the updated ns4 host (now again running Debian stable).
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fcf5641..5697e44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,8 @@ build:
   tags: ["ns4.shore.co.il"]
   only: ["nimrod"]
   script:
-    - cid="$(basename $(cat /proc/1/cpuset))"
+    # yamllint disable-line rule:line-length
+    - cid="$(basename "$(dirname "$(awk '/hostname/ {print $4}' /proc/1/mountinfo)")")"
     - docker pull registry.shore.co.il/presentation
     - >-
       docker run
-- 
GitLab