gitlab-build-images/.gitlab/ci/definitions.yml
2022-05-23 16:44:10 +02:00

11 lines
292 B
YAML

.build_and_push:
stage: custom
needs: []
script:
- ./scripts/register-binfmt
- ./scripts/lib/custom-docker-build
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
PUSH_CUSTOM_IMAGE: "true"