2022-07-12 13:44:03 +02:00
|
|
|
---
|
2022-11-29 14:22:11 +01:00
|
|
|
variables:
|
|
|
|
NIX_CONFIG: "experimental-features = nix-command flakes recursive-nix"
|
|
|
|
|
2022-07-12 13:44:03 +02:00
|
|
|
default:
|
2022-11-29 14:16:04 +01:00
|
|
|
tags:
|
|
|
|
- nix
|
2022-11-29 14:53:03 +01:00
|
|
|
before_script:
|
|
|
|
- nix-shell -p nix-direnv
|
|
|
|
- direnv allow
|
2022-07-12 13:44:03 +02:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
|
2022-11-29 14:38:16 +01:00
|
|
|
lint.nix:
|
|
|
|
stage: test
|
|
|
|
script:
|
2022-11-29 14:53:03 +01:00
|
|
|
- env
|
|
|
|
- nix-linter || true
|
2022-11-29 14:38:16 +01:00
|
|
|
- nix develop
|
2022-11-29 14:53:03 +01:00
|
|
|
- env
|
|
|
|
- nix-linter || true
|
2022-11-29 14:38:16 +01:00
|
|
|
- nix-linter *.nix
|
2022-11-29 14:53:03 +01:00
|
|
|
# lint.yaml:
|
|
|
|
# stage: test
|
|
|
|
# script:
|
|
|
|
# - nix develop
|
|
|
|
# - yamllint -f auto .
|
2022-11-29 14:38:16 +01:00
|
|
|
|
2022-11-29 14:53:03 +01:00
|
|
|
# lint.kustomize.dev:
|
|
|
|
# stage: build
|
|
|
|
# script:
|
|
|
|
# - nix develop
|
|
|
|
# - kubectl kustomize overlays/dev --enable-helm
|
2022-07-13 09:53:17 +02:00
|
|
|
|
2022-11-29 14:53:03 +01:00
|
|
|
# lint.kustomize.prod:
|
|
|
|
# stage: build
|
|
|
|
# script:
|
|
|
|
# - nix develop
|
|
|
|
# - kubectl kustomize overlays/prod --enable-helm
|