nixos-config/.gitlab-ci.yml
2023-01-28 13:28:04 +01:00

25 lines
528 B
YAML

default:
tags:
- nix
variables:
WORKFLOW:
options:
- update
- build
description: "Workflow to trigger"
value: update
include:
- local: .gitlab-ci/build.yml
rules:
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_PIPELINE_SOURCE == "web" && $WORKFLOW == "build"
- local: .gitlab-ci/update.yml
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "web" && $WORKFLOW == "update"
show-latest-commit:
stage: .pre
script: git show HEAD -q