summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohan Thomsen <jth@dbc.dk>2019-10-24 10:53:12 +0200
committerJohan Thomsen <jth@dbc.dk>2019-10-25 10:10:42 +0200
commitb263e57c57087f6ba3e135a0727ddefae20c7923 (patch)
tree040185306916f7178c53362a56d0c4b9d099afd0
parentf4c4b53b24dd97ca80d7fb7c93d7da9c624a766b (diff)
downloadnixpkgs-b263e57c57087f6ba3e135a0727ddefae20c7923.tar
nixpkgs-b263e57c57087f6ba3e135a0727ddefae20c7923.tar.gz
nixpkgs-b263e57c57087f6ba3e135a0727ddefae20c7923.tar.bz2
nixpkgs-b263e57c57087f6ba3e135a0727ddefae20c7923.tar.lz
nixpkgs-b263e57c57087f6ba3e135a0727ddefae20c7923.tar.xz
nixpkgs-b263e57c57087f6ba3e135a0727ddefae20c7923.tar.zst
nixpkgs-b263e57c57087f6ba3e135a0727ddefae20c7923.zip
scripts/gce: make image name configurable
-rwxr-xr-xnixos/maintainers/scripts/gce/create-gce.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/maintainers/scripts/gce/create-gce.sh b/nixos/maintainers/scripts/gce/create-gce.sh
index 48748a59d29..77cc64e591e 100755
--- a/nixos/maintainers/scripts/gce/create-gce.sh
+++ b/nixos/maintainers/scripts/gce/create-gce.sh
@@ -15,7 +15,7 @@ nix-build '<nixpkgs/nixos/lib/eval-config.nix>' \
    -j 10
 
 img_path=$(echo gce/*.tar.gz)
-img_name=$(basename "$img_path")
+img_name=${IMAGE_NAME:-$(basename "$img_path")}
 img_id=$(echo "$img_name" | sed 's|.raw.tar.gz$||;s|\.|-|g;s|_|-|g')
 if ! gsutil ls "gs://${BUCKET_NAME}/$img_name"; then
   gsutil cp "$img_path" "gs://${BUCKET_NAME}/$img_name"