diff options
author | Johan Thomsen <jth@dbc.dk> | 2019-10-24 10:53:12 +0200 |
---|---|---|
committer | Johan Thomsen <jth@dbc.dk> | 2019-10-25 10:10:42 +0200 |
commit | b263e57c57087f6ba3e135a0727ddefae20c7923 (patch) | |
tree | 040185306916f7178c53362a56d0c4b9d099afd0 /nixos/maintainers | |
parent | f4c4b53b24dd97ca80d7fb7c93d7da9c624a766b (diff) |
scripts/gce: make image name configurable
Diffstat (limited to 'nixos/maintainers')
-rwxr-xr-x | nixos/maintainers/scripts/gce/create-gce.sh | 2 |
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 48748a59d298..77cc64e591e9 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" |