diff mbox series

[RFC,XEN,5/7] automation: Introduce DO_REBUILD_CONTAINER, to allow to rebuild a container

Message ID 20230302175332.56052-6-anthony.perard@citrix.com (mailing list archive)
State New, archived
Headers show
Series automation, RFC prototype, Have GitLab CI built its own containers | expand

Commit Message

Anthony PERARD March 2, 2023, 5:53 p.m. UTC
This allow to start a pipeline manually and set a variable to test the
build of a single container, e.g.
    DO_REBUILD_CONTAINER = ubuntu/xenial

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 automation/gitlab-ci/containers.yaml | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/automation/gitlab-ci/containers.yaml b/automation/gitlab-ci/containers.yaml
index a6d61980b1..9074bfe6f1 100644
--- a/automation/gitlab-ci/containers.yaml
+++ b/automation/gitlab-ci/containers.yaml
@@ -7,6 +7,7 @@ 
     - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "staging"
       changes:
         - automation/build/${BUILD_CONTAINER}.dockerfile
+    - if: $DO_REBUILD_CONTAINER == $BUILD_CONTAINER
   services:
     - docker:dind
   before_script: