35 lines
928 B
YAML
35 lines
928 B
YAML
stages:
|
|
- generate
|
|
- check
|
|
- trigger
|
|
|
|
workflow:
|
|
rules:
|
|
# Run when a merge request event is open
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
# Do not run branch-specific pipeline if there is an open MR
|
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
|
when: never
|
|
# Run reduced pipeline for branches
|
|
- if: $CI_COMMIT_BRANCH
|
|
|
|
include:
|
|
# Low-effort, we can always do lint checks, validations, and so forth
|
|
- local: .gitlab/always.yml
|
|
# Actual download of ISOs and building of images. This should only be
|
|
# done some of the time
|
|
- local: .gitlab/build.yml
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
- if: $CI_PIPELINE_SOURCE == "tag"
|
|
- if: $CI_COMMIT_BRANCH == "main"
|
|
|
|
variables:
|
|
PACKER_CONFIG_DIR: ./packer_config/
|
|
PACKER_CACHE_DIR: ./cache/
|
|
|
|
default:
|
|
image: registry.thehellings.com/greg/ci-images/vm-test:latest
|
|
tags:
|
|
- nix
|