Skip to content

Commit

Permalink
Use gcp n4 machine and the latest ubuntu image
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiawei committed Nov 26, 2024
1 parent 7acfd45 commit 58fc9a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .semaphore/vms/create-test-vm
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ gcloud auth activate-service-account --key-file=$gcp_secret_key
function create-vm() {
gcloud --quiet compute instances create "${vm_name}" \
--zone=${zone} \
--machine-type=n1-standard-4 \
--image=ubuntu-2004-focal-v20211102 \
--machine-type=n4-standard-4 \
--image=ubuntu-2004-focal-v20241115 \
--image-project=ubuntu-os-cloud \
--boot-disk-size=$disk_size \
--boot-disk-type=pd-standard && \
--boot-disk-type=hyperdisk-standard && \
ssh_cmd="gcloud --quiet compute ssh --zone=${zone} ubuntu@${vm_name}"
for ssh_try in $(seq 1 10); do
echo "Trying to SSH in: $ssh_try"
Expand Down
6 changes: 3 additions & 3 deletions felix/.semaphore/create-test-vm
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ gcloud auth activate-service-account --key-file=$HOME/secrets/secret.google-serv
function create-vm() {
gcloud --quiet compute instances create "${vm_name}" \
--zone=${zone} \
--machine-type=n1-standard-4 \
--image=ubuntu-2204-jammy-v20240228 \
--machine-type=n4-standard-4 \
--image=ubuntu-2204-jammy-v20241119 \
--image-project=ubuntu-os-cloud \
--boot-disk-size=20GB \
--boot-disk-type=pd-standard && \
--boot-disk-type=hyperdisk-standard && \
for ssh_try in $(seq 1 10); do
echo "Trying to SSH in: $ssh_try"
gcloud --quiet compute ssh --zone=${zone} "ubuntu@${vm_name}" -- echo "Success" && break
Expand Down

0 comments on commit 58fc9a4

Please sign in to comment.