Files
wunker-os/.gitlab-ci.yml
Gerald Pinder 9a8d27380b Set name
2024-04-11 17:58:39 -04:00

42 lines
1.3 KiB
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
build-image:
stage: build
interruptible: true
image:
name: ghcr.io/blue-build/cli:138-proposal-support-having-recipe-files-stored-in-recipes
entrypoint: [""]
services:
- docker:dind
parallel:
matrix:
- RECIPE:
- recipe-jp-desktop-gaming.yml
- recipe-jp-laptop.yml
variables:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: /certs
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: $DOCKER_TLS_CERTDIR/client
RUST_LOG_STYLE: always
CLICOLOR_FORCE: 1
before_script:
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
- export COSIGN_PRIVATE_KEY=$(cat .secure_files/cosign.key)
script:
- sleep 5
- docker buildx create --use --bootstrap --name blue-build
- bluebuild build -vv -B docker -p ./config/$RECIPE
# - bluebuild build -vv -B buildah --squash --push ./recipes/$RECIPE