scripts/gce: make image name configurable
commitb263e57c57087f6ba3e135a0727ddefae20c7923
authorJohan Thomsen <jth@dbc.dk>
dateThu 24 Oct 2019, 10:53 (7 years ago)
parentf4c4b53
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"