Extra experimental features the right way

This commit is contained in:
Greg Hellings
2025-09-28 21:58:29 -05:00
parent 2307c4a25e
commit 1141ec5857
+5 -8
View File
@@ -2,20 +2,17 @@ stages:
- build - build
- deploy - deploy
variables:
NIX_EXTRA_EXPERIMENTAL_FEATURES: nix-command flakes
build: build:
stage: build stage: build
image: "nixos/nix:latest" image: "nixos/nix:latest"
tags: tags:
- kubernetes - kubernetes
script: script:
- nix run ".#podman" -- login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - nix --extra-experimental-features nix-command --extra-experimental-features flakes run ".#podman" -- login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- nix build . - nix --extra-experimental-features nix-command --extra-experimental-features flakes build .
- nix run ".#podman" -- load -i result - nix --extra-experimental-features nix-command --extra-experimental-features flakes run ".#podman" -- load -i result
- nix run ".#podman" -- tag "localhost/gregs-homepage:latest" $CI_REGISTRY/greg/homepage/gregs-homepage:latest - nix --extra-experimental-features nix-command --extra-experimental-features flakes run ".#podman" -- tag "localhost/gregs-homepage:latest" $CI_REGISTRY/greg/homepage/gregs-homepage:latest
- nix run ".#podman" -- push $CI_REGISTRY/greg/homepage/gregs-homepage:latest - nix --extra-experimental-features nix-command --extra-experimental-features flakes run ".#podman" -- push $CI_REGISTRY/greg/homepage/gregs-homepage:latest
deploy: deploy:
stage: deploy stage: deploy