From c3be0f6c728b4e37e00067e4120e50f204da3e11 Mon Sep 17 00:00:00 2001
From: George Sedov <george.sedov@desy.de>
Date: Fri, 21 Jan 2022 17:09:16 +0100
Subject: [PATCH] update container rules

---
 deploy/build_env/services-linux/Dockerfile                   | 1 +
 deploy/build_env/services-linux/gitlab-ci-build-docker.yml   | 4 +++-
 deploy/build_env/services-windows/gitlab-ci-build-docker.yml | 4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/deploy/build_env/services-linux/Dockerfile b/deploy/build_env/services-linux/Dockerfile
index a1743a74f..8621a8bf0 100644
--- a/deploy/build_env/services-linux/Dockerfile
+++ b/deploy/build_env/services-linux/Dockerfile
@@ -12,6 +12,7 @@ RUN set -eux; \
 		nomad \
 		grpc-proto \
 		python3-dev \
+		lcov \
 	; \
 	rm -rf /var/lib/apt/lists/*
 
diff --git a/deploy/build_env/services-linux/gitlab-ci-build-docker.yml b/deploy/build_env/services-linux/gitlab-ci-build-docker.yml
index 00b07e72b..f1b8a64d3 100644
--- a/deploy/build_env/services-linux/gitlab-ci-build-docker.yml
+++ b/deploy/build_env/services-linux/gitlab-ci-build-docker.yml
@@ -9,4 +9,6 @@ docker-create-asapo-services-linux-build-env:
   tags:
     - kubernetes-executor
   rules:
-    - when: manual
+    - changes: $CI_PROJECT_DIR/deploy/build_env/services-linux/Dockerfile
+      when: always
+    - when: never
diff --git a/deploy/build_env/services-windows/gitlab-ci-build-docker.yml b/deploy/build_env/services-windows/gitlab-ci-build-docker.yml
index 13895de2a..1d55cf733 100644
--- a/deploy/build_env/services-windows/gitlab-ci-build-docker.yml
+++ b/deploy/build_env/services-windows/gitlab-ci-build-docker.yml
@@ -9,4 +9,6 @@ docker-create-asapo-services-windows-build-env:
   tags:
     - kubernetes-executor
   rules:
-    - when: manual
+    - changes: $CI_PROJECT_DIR/deploy/build_env/services-windows/Dockerfile
+      when: always
+    - when: never
-- 
GitLab