From 1141ec585786ef9a9b3632a4ebbcd1f477c85bdb Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 28 Sep 2025 21:58:29 -0500 Subject: [PATCH] Extra experimental features the right way --- .gitlab-ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1babe2b..7fcc454 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,20 +2,17 @@ stages: - build - deploy -variables: - NIX_EXTRA_EXPERIMENTAL_FEATURES: nix-command flakes - build: stage: build image: "nixos/nix:latest" tags: - kubernetes script: - - nix run ".#podman" -- login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - - nix build . - - nix run ".#podman" -- load -i result - - nix 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" -- login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + - nix --extra-experimental-features nix-command --extra-experimental-features flakes build . + - nix --extra-experimental-features nix-command --extra-experimental-features flakes run ".#podman" -- load -i result + - 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 --extra-experimental-features nix-command --extra-experimental-features flakes run ".#podman" -- push $CI_REGISTRY/greg/homepage/gregs-homepage:latest deploy: stage: deploy