diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2019-10-25 14:28:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-25 14:28:06 +0100 |
commit | 8e0563e7e661936a8fda94e80c2209263c5d99c0 (patch) | |
tree | eb78b2b41d1a925dd53d19d87b1c71549dde11cf /nixos | |
parent | 8b6bfda0cf9830792e7edbb379a1e2a1e5df5b86 (diff) | |
parent | b263e57c57087f6ba3e135a0727ddefae20c7923 (diff) | |
download | nixpkgs-8e0563e7e661936a8fda94e80c2209263c5d99c0.tar nixpkgs-8e0563e7e661936a8fda94e80c2209263c5d99c0.tar.gz nixpkgs-8e0563e7e661936a8fda94e80c2209263c5d99c0.tar.bz2 nixpkgs-8e0563e7e661936a8fda94e80c2209263c5d99c0.tar.lz nixpkgs-8e0563e7e661936a8fda94e80c2209263c5d99c0.tar.xz nixpkgs-8e0563e7e661936a8fda94e80c2209263c5d99c0.tar.zst nixpkgs-8e0563e7e661936a8fda94e80c2209263c5d99c0.zip |
Merge pull request #71970 from johanot/create-gce-nitpick
scripts/gce: make image name configurable
Diffstat (limited to 'nixos')
-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 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" |