From 3cd06b22069c009b8c5fea2d5fad5f996667d2e3 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 16 Aug 2022 01:46:04 +0300 Subject: huge update-o --- .gitlab-ci.yml | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2242e13..2626dd7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,16 @@ --- -image: nixpkgs/nix-flakes:nixos-21.11 - -before_script: - - nix --version - - nix flake metadata +image: nixpkgs/nix:nixos-22.05 stages: - info - check - - cachix + - publish info: stage: info script: - - env + - nix --version + - nix flake metadata - nix show-config - nix show-derivation @@ -21,19 +18,11 @@ check: stage: check script: - nix flake check --show-trace - allow_failure: true -cachix: - stage: cachix +publish: + stage: publish script: - set -o pipefail - nix build --print-build-logs --show-trace --json | - nix shell nixpkgs#jq - --command jq -r '.[].outputs | to_entries[].value' | - nix shell nixpkgs#cachix - --command cachix push $CACHIX_CACHE_NAME - artifacts: - paths: - - result - expire_in: 1 week - when: on_success + nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | + nix run nixpkgs#cachix -- push $CACHIX_CACHE_NAME -- cgit 1.4.1