Files
wunker-os/.gitlab-ci.yml
2023-12-30 15:53:56 -05:00

38 lines
862 B
YAML

workflow:
rules:
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: "$CI_COMMIT_TAG"
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS"
when: never
- if: "$CI_COMMIT_BRANCH"
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/blue-build:alpine
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:
- bb build -vv --push ./config/$RECIPE