2020-06-07 14:03:12 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-05-09 12:48:37 +00:00
|
|
|
stages:
|
2021-03-28 15:27:46 +00:00
|
|
|
- generate
|
|
|
|
- start
|
2020-05-09 12:48:37 +00:00
|
|
|
|
2021-03-28 15:27:46 +00:00
|
|
|
generatePipeline:
|
|
|
|
stage: generate
|
2020-05-08 16:48:34 +00:00
|
|
|
image: "nixos/nix:latest"
|
|
|
|
script:
|
2021-03-28 15:27:46 +00:00
|
|
|
- "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"
|
2021-03-20 02:36:59 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2021-03-28 15:27:46 +00:00
|
|
|
- gitlab-ci.yml
|
2021-03-20 02:36:59 +00:00
|
|
|
expire_in: '30 days'
|
2020-11-04 17:30:28 +00:00
|
|
|
tags:
|
|
|
|
- cacher
|
2020-05-09 17:53:17 +00:00
|
|
|
|
2021-03-28 15:27:46 +00:00
|
|
|
startPipeline:
|
|
|
|
stage: start
|
|
|
|
trigger:
|
|
|
|
include:
|
|
|
|
- artifact: gitlab-ci.yml
|
|
|
|
job: generatePipeline
|