Skip to content
Snippets Groups Projects
Commit eb5e9b8a authored by Emanuele Aina's avatar Emanuele Aina
Browse files

gitlab-ci: Fix job dependencies


The `.build-docker-image` template had an explicit `needs:` pointing to
`build-base-rootfs` which was only correct for `build-base-docker-image`
as other build jobs actually depend on `build-base-docker-image`.

Most of the build jobs did indeed overrid `needs:` except
`build-image-builder-docker-image` and
`build-flatdeb-builder-docker-image` which ended up having a race
condition which caused them to fail if they got executed after
`build-base-rootfs` was done but before `build-base-docker-image` pushed
the base image.

Fix that by getting rid of the `needs:` and simply relying on stages
for sequencing the build jobs.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 882bbd76
No related branches found
No related tags found
2 merge requests!139gitlab-ci: Fix job dependencies,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Pipeline #164923 passed
......@@ -57,8 +57,6 @@ build-base-rootfs:
entrypoint: [""]
only:
- branches
needs:
- build-base-rootfs
script:
- mkdir /kaniko/.docker/
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
......@@ -101,16 +99,12 @@ build-base-docker-image:
build-package-builder-docker-image:
extends: .build-docker-image
stage: derived images
needs:
- build-base-docker-image
variables:
image: package-builder
build-package-source-builder-docker-image:
extends: .build-docker-image
stage: derived images
needs:
- build-base-docker-image
variables:
image: package-source-builder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment