Commit c44f415a authored by Jordan Petridіs's avatar Jordan Petridіs 🌱 Committed by Jordan Petridіs

citemplate: make it so docker builds only run for detached pipelines

Currently, if you have a MR open, there 2 pipelines being
triggered. One normal, and one detached.

Previously, if you were to rebuild an image, the jobs of the
docker build stage would be executed concurrently, race
and end up both rebuilding the image.

Make them manual for normal pipelines to avoid such occurrence
and waste of resources.

Part-of: <!320>
parent fe54d6d8
Pipeline #182237 waiting for manual action with stages
in 48 seconds
......@@ -195,7 +195,14 @@ default:
image: "$CI_REGISTRY/freedesktop/ci-templates/buildah:2020-03-24"
- when: 'always'
# Always run for detached pipeleines
when: 'always'
- if: '$CI_COMMIT_BRANCH == "master"'
when: 'always'
when: 'always'
- when: 'manual'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment