chore: initial commit

This commit is contained in:
technofab 2024-01-14 16:45:07 +01:00
commit 0df36ad437
7 changed files with 768 additions and 0 deletions

36
gitlab-ci.yml Normal file
View file

@ -0,0 +1,36 @@
variables:
# cachix | attic
NIX_CI_CACHE_TYPE: cachix
stages:
- build
- trigger
nix-ci:build:
stage: build
image: nixos/nix:latest
before_script:
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- echo "accept-flake-config = true" >> /etc/nix/nix.conf
script:
# build the generated-gitlab-ci.yml
- nix build .#gitlab-ci-config
- install result generated-gitlab-ci.yml
after_script:
# upload to binary cache
- echo $(nix-store --query --references result)
# TODO: upload deps using cachix or attic
artifacts:
paths:
- generated-gitlab-ci.yml
nix-ci:trigger:
stage: trigger
needs:
- nix-ci:build
trigger:
include:
- artifact: generated-gitlab-ci.yml
job: nix-ci:build
strategy: depend