adopted pipeline based on docker a container

This commit is contained in:
Sebastian Wendel 2022-11-29 16:13:04 +01:00
parent 096f7d2cb2
commit 01d2ebe23c
No known key found for this signature in database
GPG key ID: 1422B7DF78144640

View file

@ -1,41 +1,22 @@
---
variables:
NIX_CONFIG: "experimental-features = nix-command flakes recursive-nix"
default:
tags:
- nix
before_script:
- nix-shell -p nix-direnv
# - direnv allow
image: fabcityhamburg/k8s-tools
stages:
- test
- build
lint.nix:
lint.yaml:
stage: test
script:
- env
- nix-linter || true
- nix develop
- env
- nix-linter || true
- nix-linter *.nix
# lint.yaml:
# stage: test
# script:
# - nix develop
# - yamllint -f auto .
- yamllint -f auto .
# lint.kustomize.dev:
# stage: build
# script:
# - nix develop
# - kubectl kustomize overlays/dev --enable-helm
lint.kustomize.dev:
stage: build
script:
- kubectl kustomize overlays/dev --enable-helm
# lint.kustomize.prod:
# stage: build
# script:
# - nix develop
# - kubectl kustomize overlays/prod --enable-helm
lint.kustomize.prod:
stage: build
script:
- kubectl kustomize overlays/prod --enable-helm