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: default:
tags: image: fabcityhamburg/k8s-tools
- nix
before_script:
- nix-shell -p nix-direnv
# - direnv allow
stages: stages:
- test - test
- build - build
lint.nix: lint.yaml:
stage: test stage: test
script: script:
- env - yamllint -f auto .
- nix-linter || true
- nix develop
- env
- nix-linter || true
- nix-linter *.nix
# lint.yaml:
# stage: test
# script:
# - nix develop
# - yamllint -f auto .
# lint.kustomize.dev: lint.kustomize.dev:
# stage: build stage: build
# script: script:
# - nix develop - kubectl kustomize overlays/dev --enable-helm
# - kubectl kustomize overlays/dev --enable-helm
# lint.kustomize.prod: lint.kustomize.prod:
# stage: build stage: build
# script: script:
# - nix develop - kubectl kustomize overlays/prod --enable-helm
# - kubectl kustomize overlays/prod --enable-helm