Make pipeline manual on MRs

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-03-15 08:49:44 +02:00
parent e2be0e2ff0
commit 280f40508e

View File

@ -22,6 +22,11 @@ build-dev-image:
- make .build-image - make .build-image
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" - docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
- make .push-build-image - make .push-build-image
rules:
- !reference [.main-or-manual, rules]
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: manual
- when: always
.requires-build-image: .requires-build-image:
image: "${BUILDIMAGE}" image: "${BUILDIMAGE}"