Add tarball to CI and make steps manual

This commit is contained in:
Rodrigo Arias 2024-10-21 08:53:54 +02:00
parent 20fb2f9194
commit 97d477d285

View File

@ -1,6 +1,23 @@
build:lagarto-ox: build:lagarto-ox:
stage: build stage: build
when: manual
tags: tags:
- nix - nix
script: script:
- nix develop -L .#lagarto-ox --command fpga/run-remotely.sh fpgalogin1:ci - 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