depot/.gitlab-ci.yml

29 lines
631 B
YAML
Raw Permalink Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
stages:
- generate
- start
generatePipeline:
stage: generate
2020-05-08 16:48:34 +00:00
image: "nixos/nix:latest"
script:
- "nix build -v -f . nix.gitlab-ci --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
- "cat ./result > gitlab-ci.yml"
artifacts:
paths:
- gitlab-ci.yml
expire_in: '30 days'
tags:
- cacher
startPipeline:
stage: start
trigger:
strategy: depend
include:
- artifact: gitlab-ci.yml
job: generatePipeline