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