[gimp-web/oscp] Make it possible to trigger specific jobs via API



commit c1399790ff61c688c7cd6feb85361042a726b4f0
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon May 30 12:56:51 2022 +0200

    Make it possible to trigger specific jobs via API

 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 550afe6b..4ed5c0db 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,10 @@
   image:
     name: gcr.io/kaniko-project/executor:debug
     entrypoint: [""]
+  rules:
+    - when: manual
+    - if: $TRIGGER_JOB == $CI_JOB_NAME
+      when: always
   script:
     - export container=docker
     - mkdir -p /kaniko/.docker
@@ -19,7 +23,6 @@
       --context "${CI_JOB_NAME}"
       --dockerfile "${CI_JOB_NAME}/Dockerfile"
       $KANIKO_DESTINATION
-  when: manual
 
 developer.gimp.org:
   extends:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]