--- variables: NIX_VERSION: "latest" NIX_CONFIG: "experimental-features = nix-command flakes recursive-nix" default: image: nixpkgs/nix-unstable:${NIX_VERSION} timeout: 1 hours before_script: # - nix flake show # - nix profile install --inputs-from . 'nixpkgs#direnv' # - direnv hook bash >> ~/.bashrc # - . ~/.bashrc # - . /etc/profile # - env # - direnv allow # - direnv status # - direnv reload # - cd $(pwd) - nix profile install --inputs-from . 'nixpkgs#yamllint' - nix profile install --inputs-from . 'nixpkgs#mdl' - nix profile install --inputs-from . 'nixpkgs#kubectl' - nix profile install --inputs-from . 'nixpkgs#kubernetes-helm' - nix profile install --inputs-from . 'nixpkgs#kustomize' stages: - test - build - release - deploy lint.yaml: stage: test script: - yamllint -f auto . lint.markdown: stage: test script: mdl . kustomize.dev: stage: test script: kubectl kustomize overlays/dev --enable-helm kustomize.prod: stage: test script: kubectl kustomize overlays/prod --enable-helm