From ce177064975e2c37156fa1b39e2223d593aae01c Mon Sep 17 00:00:00 2001 From: Wildan Mubarok Date: Mon, 28 Jul 2025 13:46:56 +0000 Subject: [PATCH 1/3] Do not create artifacts in CI --- .gitlab-ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8428870bc..d9da7af3c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,10 +46,6 @@ img: cargo binstall --no-confirm --version 0.27.0 cbindgen && cargo build --manifest-path installer/Cargo.toml --release && PODMAN_BUILD=0 REPO_BINARY=1 make ci-img IMG_TAG=$CI_COMMIT_REF_NAME - artifacts: - paths: - - build/img/ - expire_in: 1 week .update-submodule: stage: retag From e57b033faeac0666b335578a7800f2f6a0dea2fb Mon Sep 17 00:00:00 2001 From: Wildan Mubarok Date: Mon, 28 Jul 2025 14:01:05 +0000 Subject: [PATCH 2/3] Fix blocked by manual trigger --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d9da7af3c..8bd050dd7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,6 +52,7 @@ img: rules: - if: '$CI_PIPELINE_SOURCE == "push"' when: manual + allow_failure: true - when: never image: name: alpine/git:latest From c5a7b03f236fe0f8e083ed0929e9003b5eb4fa48 Mon Sep 17 00:00:00 2001 From: Wildan Mubarok Date: Mon, 28 Jul 2025 14:07:11 +0000 Subject: [PATCH 3/3] Only create artifacts in MR --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8bd050dd7..261dbfbe9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,7 +45,12 @@ img: cargo binstall --no-confirm --version 1.16.0 just && cargo binstall --no-confirm --version 0.27.0 cbindgen && cargo build --manifest-path installer/Cargo.toml --release && - PODMAN_BUILD=0 REPO_BINARY=1 make ci-img IMG_TAG=$CI_COMMIT_REF_NAME + PODMAN_BUILD=0 REPO_BINARY=1 make ci-img IMG_TAG=$CI_COMMIT_REF_NAME && + ([ $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master" ] && rm -rf build/img/* || true) + artifacts: + paths: + - build/img/ + expire_in: 1 week .update-submodule: stage: retag