git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #71970 from johanot/create-gce-nitpick

scripts/gce: make image name configurable

commit8e0563e7e661936a8fda94e80c2209263c5d99c0 authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 25 Oct 2019, 14:28 (7 years ago) parent8b6bfdab263e57
1 file changed+1−1
nixos/maintainers/scripts/gce/create-gce.sh+1−1
nixos/maintainers/scripts/gce/create-gce.sh+1−1
@@ -15,7 +15,7 @@ nix-build '<nixpkgs/nixos/lib/eval-config.nix>' \
1515 -j 10
1616
1717img_path=$(echo gce/*.tar.gz)
18−img_name=$(basename "$img_path")
18+img_name=${IMAGE_NAME:-$(basename "$img_path")}
1919img_id=$(echo "$img_name" | sed 's|.raw.tar.gz$||;s|\.|-|g;s|_|-|g')
2020if ! gsutil ls "gs://${BUCKET_NAME}/$img_name"; then
2121 gsutil cp "$img_path" "gs://${BUCKET_NAME}/$img_name"