From 9c0d04c86204fd360a7528faf2b53acc7301b598 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 4 Apr 2024 11:49:44 +0200 Subject: [PATCH] ci: Build the macOS image each time the Linux image is built. --- gitlab/image.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gitlab/image.yml b/gitlab/image.yml index c93ea0d6..8b235a66 100644 --- a/gitlab/image.yml +++ b/gitlab/image.yml @@ -19,6 +19,10 @@ image-linux: - sed -i "1iFROM $IMAGE_SOURCE" "$DOCKER_FILE" - /kaniko/executor --context "$CI_PROJECT_DIR" --dockerfile "$DOCKER_FILE" --destination "$IMAGE_LOCAL" +# Job `image-mac' must be run each time the pipeline is run on a push, +# otherwise macOS artifacts are not regenerated and macOS jobs cannot find them. +# So we add a dependency on image.docker too, even if that file is not really +# used for macOS. image-mac: stage: image rules: @@ -26,6 +30,7 @@ image-mac: changes: - .gitlab-ci.yml - gitlab/image.yml + - gitlab/image.docker interruptible: true tags: - mac