fixed gitlab pipeline syntax

This commit is contained in:
Sebastian Wendel 2022-07-12 16:11:46 +02:00
parent 3b03abe653
commit 12c1cdd8ee
No known key found for this signature in database
GPG key ID: 1422B7DF78144640
2 changed files with 15 additions and 15 deletions

3
.envrc
View file

@ -1,5 +1,4 @@
watch_file *.nix **/*.nix
use flake
eval "$shellHook"
dotenv

View file

@ -1,12 +1,13 @@
---
variables:
NIX_VERSION: "2.10.0"
NIX_CONFIG: "experimental-features = nix-command flakes ca-references recursive-nix"
default:
image: nixpkgs/nix-flakes:nixos-22.05
image: nixos/nix:${NIX_VERSION}
timeout: 1 hours
before_script:
# - mkdir -p /etc/nix
# - cat "${NIX_CONF}" > /etc/nix/nix.conf
- nix profile install --inputs-from . 'nixpkgs#nix-direnv'
# - nix-env -i direnv
- nix profile install --inputs-from . 'nixpkgs#direnv'
# - direnv allow
stages:
@ -22,12 +23,12 @@ check:
- nix flake show
- nix flake check
lint.yaml:
stage: test
tags: ['lint']
script: yamllint -f auto .
# lint.yaml:
# stage: test
# tags: ['lint']
# script: yamllint -f auto .
lint.markdown:
stage: test
tags: ['lint']
script: mdl .
# lint.markdown:
# stage: test
# tags: ['lint']
# script: mdl .