Try new pipeline

This commit is contained in:
Gerald Pinder
2023-12-18 22:41:47 -05:00
parent e888a7521d
commit 889cdd7cfd

View File

@@ -1,11 +1,40 @@
include: workflow:
- project: "wunker-bunker/ci-pipelines" rules:
file: "/ublue-build.yml" - 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: parallel:
matrix: matrix:
- RECIPE: - RECIPE:
- recipe-jp-desktop.yml - recipe-jp-desktop.yml
- recipe-jp-laptop.yml - recipe-jp-laptop.yml
- recipe-cp-laptop.yml - recipe-cp-laptop.yml
id_tokens:
SIGSTORE_ID_TOKEN:
aud: sigstore
script:
- ublue build --push ./config/$RECIPE