Rodrigo Arias Mallo
5da53c69b8
Some checks failed
CI / build:lagarto-ox-tarball (push) Failing after 9s
Allows the same script to be executed by GitLab and Gitea runners.
17 lines
414 B
Bash
Executable File
17 lines
414 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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.zst"
|
|
ln -s "$out/$fn" "$out/latest.tar.zst"
|
|
rm result
|
|
|
|
echo "Pinned: https://jungle.bsc.es/~gitlab-runner/nixos-riscv/$fn"
|
|
echo "Latest: https://jungle.bsc.es/~gitlab-runner/nixos-riscv/latest.tar.zst"
|