From 97d477d2850e696930d66041069306a210bb9b16 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 21 Oct 2024 08:53:54 +0200 Subject: [PATCH] Add tarball to CI and make steps manual --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3cdbd5d..c6e9563 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,23 @@ build:lagarto-ox: stage: build + when: manual tags: - nix script: - nix develop -L .#lagarto-ox --command fpga/run-remotely.sh fpgalogin1:ci + +build:lagarto-ox-tarball: + stage: build + when: manual + tags: + - nix + script: + - nix build -L .#nixosConfigurations.lagarto-ox.pkgs.fpga-tarball + - cd result + - out=/ceph/home/gitlab-runner/public_html/nixos-riscv/ + - fn=$(ls | head -1) + - cp $fn $out/$fn + - rm -f $out/latest.tar.gz + - ln -s $out/$fn $out/latest.tar.gz + - cd .. + - rm result