Extra experimental features the right way
This commit is contained in:
+5
-8
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user