From 889cdd7cfdaef7e8866c8a8c3045e47cc7d5b342 Mon Sep 17 00:00:00 2001 From: Gerald Pinder <4626052+gmpinder@users.noreply.github.com> Date: Mon, 18 Dec 2023 22:41:47 -0500 Subject: [PATCH] Try new pipeline --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7fbcad7..63bafd8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,40 @@ -include: - - project: "wunker-bunker/ci-pipelines" - file: "/ublue-build.yml" +workflow: + rules: + - if: $RELEASE_VERSION != 'major' && $RELEASE_VERSION != 'minor' && $RELEASE_VERSION != 'patch' && $RELEASE_VERSION != 'prerelease' + when: never + - if: "$CI_COMMIT_TAG" + when: never + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" + when: never + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS" + when: never + - if: "$CI_COMMIT_BRANCH" -.recipe-matrix: +stages: + - build + +variables: + ACTION: + description: "Action to perform for the pipeline." + value: "build-image" + options: + - "build-image" + +build-image: + stage: build + image: registry.gitlab.com/wunker-bunker/ublue-cli + retry: 2 + rules: + - if: $ACTION == "build-image" parallel: matrix: - RECIPE: - recipe-jp-desktop.yml - recipe-jp-laptop.yml - recipe-cp-laptop.yml + id_tokens: + SIGSTORE_ID_TOKEN: + aud: sigstore + script: + - ublue build --push ./config/$RECIPE