From 4702387b68a61398c9bf534d8ca38f1ba35c4102 Mon Sep 17 00:00:00 2001
From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
Date: Wed, 31 May 2023 21:57:43 +0200
Subject: [PATCH] Adding python script for rebuilding the docker image

---
 .gitlab-ci.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c61060c..cecaed0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ workflow:
   rules:
     - if: $CI_PIPELINE_SOURCE == "merge_request_event"
     - if: $CI_COMMIT_TAG
-    - if: $CI_PIPELINE_SOURCE == "push"
+    - if: $CI_COMMIT_BRANCH
     
 variables:
 
@@ -20,13 +20,14 @@ stages:
 Build pythonForPandocFilter docker image:
   stage: build
   before_script: cd pandocFilter
-  script: docker build --tag pandocFilter:latest -f dockerfile .
+  script: docker build --tag pandocfilter:latest -f dockerfile .
   rules:
-    - if: $CI_PIPELINE_SOURCE == "push"
+    - if: $CI_COMMIT_BRANCH
       changes:
         - pandocFilter/dockerfile
         - pandocFilter/setup.py
         - pandocFilter/requirements.txt
+        - pandocFilter/pandocFilter.py
 
         
 Word CR text:
-- 
GitLab