Commit 848d418d authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Adding possibility to trigger the pipeline from other projects, i.e. robot2doc

parent 02d6579a
Loading
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -8,12 +8,16 @@
stages:
  - build
  
variables:
  DOCKER_IMAGE: "all" 
    
Build api-tests docker image:
  stage: build
  before_script: cd api-tests
  script: docker build --tag api-tests-validation:latest -f Dockerfile .
  rules:
    - changes:
    - if: $DOCKER_IMAGE == "api-tests-validation" || $DOCKER_IMAGE == "all"
      changes:
        - api-tests/Dockerfile
        - api-tests/scripts/*
        - api-tests/extensions/*
@@ -24,6 +28,7 @@ Build OpenAPI validator docker image:
  before_script: cd common
  script: docker build -t openapivalidator . #docker build --build-arg http_proxy=$proxy --build-arg https_proxy=$proxy -t openapivalidator .
  rules:
    - changes:
    - if: $DOCKER_IMAGE == "openapivalidator" || $DOCKER_IMAGE == "all"
      changes:
        - common/Dockerfile
        - common/scripts/*