drm_hwcomposer: CI: Only run build-docker when necessary
When building the docker image via docker in docker, we sometimes see system errors such as: *** WARNING: Service runner-zcexkv2-project-23176-concurrent-0-14607a9f5e2c806b-docker-0 probably didn't start properly. Health check error: create service container: Error response from daemon: bad parameter: link is not supported (services.go:208:0s) Service container logs: ********* This hinders all merge requests. Limit the build-docker job to be only ran when .ci/Dockerfile is modified. Link: https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer/-/issues/96 Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
parent
1f26384f2a
commit
d82729393c
1 changed files with 7 additions and 0 deletions
|
|
@ -27,6 +27,13 @@ build-container:
|
|||
- docker push $DOCKER_IMAGE_TAG
|
||||
after_script:
|
||||
- docker logout
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
changes:
|
||||
- .ci/Dockerfile
|
||||
- if: $CI_PIPELINE_SOURCE == 'push'
|
||||
changes:
|
||||
- .ci/Dockerfile
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue