Skip to content
Snippets Groups Projects
Commit a51b14c1 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Only run build if docker compose is changed

parent 32ad4d1c
No related branches found
No related tags found
1 merge request!3Add test for matrix
Pipeline #81442 passed
...@@ -19,6 +19,9 @@ docker-base: ...@@ -19,6 +19,9 @@ docker-base:
- cd docker - cd docker
- docker build --pull -t "$CI_REGISTRY_IMAGE:latest" . - docker build --pull -t "$CI_REGISTRY_IMAGE:latest" .
- docker push "$CI_REGISTRY_IMAGE:latest" - docker push "$CI_REGISTRY_IMAGE:latest"
except:
changes:
- docker/Dockerfile
.build_das6: .build_das6:
before_script: before_script:
...@@ -36,7 +39,6 @@ docker-base: ...@@ -36,7 +39,6 @@ docker-base:
- make -C build -j - make -C build -j
- build/microbenchmarks --benchmark_out=results-generic.json --benchmark_out_format=json - build/microbenchmarks --benchmark_out=results-generic.json --benchmark_out_format=json
build-job: # This job runs in the build stage, which runs first. build-job: # This job runs in the build stage, which runs first.
stage: build stage: build
image: "$CI_REGISTRY_IMAGE:latest" image: "$CI_REGISTRY_IMAGE:latest"
...@@ -57,8 +59,6 @@ collect-performance: # This job runs in the test stage. ...@@ -57,8 +59,6 @@ collect-performance: # This job runs in the test stage.
tags: tags:
- das6-gpu - das6-gpu
stage: benchmark # It only starts when the job in the build stage completes successfully. stage: benchmark # It only starts when the job in the build stage completes successfully.
dependencies:
- build-job
extends: extends:
- .build_das6 - .build_das6
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment