Pass flakeref to release script explicitly
This commit is contained in:
parent
e53fe6af29
commit
993a0da9e7
1 changed files with 7 additions and 8 deletions
15
release.sh
15
release.sh
|
@ -3,19 +3,18 @@
|
|||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
SYSTEM=x86_64-linux
|
||||
flakeref="${1-}"
|
||||
name="${2-}"
|
||||
|
||||
name="${1-}"
|
||||
|
||||
if [ -z "$name" ];
|
||||
if [ -z "$flakeref" ] || [ -z "$name" ];
|
||||
then
|
||||
echo "Usage: $0 NAME"
|
||||
echo "Usage: $0 FLAKEREF NAME"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
imagename=$(nix eval --no-allow-dirty --raw .#packages.$SYSTEM.$name.imageName)
|
||||
imagetag=$(nix eval --no-allow-dirty --raw .#packages.$SYSTEM.$name.imageTag)
|
||||
image=$(nix build --no-allow-dirty .#packages.$SYSTEM.$name --print-out-paths --no-link)
|
||||
imagename=$(nix eval --no-allow-dirty --raw $flakeref.imageName)
|
||||
imagetag=$(nix eval --no-allow-dirty --raw $flakeref.imageTag)
|
||||
image=$(nix build --no-allow-dirty $flakeref --print-out-paths --no-link)
|
||||
gitrev=$(git rev-parse HEAD)
|
||||
|
||||
docker load < $image
|
||||
|
|
Reference in a new issue