Skip to content
Snippets Groups Projects
Commit e2ceb203 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-752: Attempt to resolve detached pipelines using rules

parent f6692141
No related branches found
No related tags found
1 merge request!321Resolve L2SS-752
......@@ -64,17 +64,28 @@ docker_store_images_master_tag:
refs:
- tags
- master
# https://stackoverflow.com/questions/68955071/how-to-disable-detached-pipelines-in-gitlab
docker_store_images_changes:
extends: .base_docker_store_images
only:
refs:
- merge_requests
changes:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TAG == null'
when: never
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: never
- changes:
- docker-compose/.env
except:
refs:
- tags
- master
when: always
# only:
# refs:
# - merge_requests
# changes:
# - docker-compose/.env
# except:
# refs:
# - tags
# - master
docker_build_image_all:
extends: .base_docker_images
only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment