File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -497,14 +497,23 @@ jobs:
497
497
"southamerica-east1-b coder-brazil coder-proxy"
498
498
)
499
499
500
+ deb_pkg="./build/coder_$(./scripts/version.sh)_linux_amd64.deb"
501
+ if [ ! -f "$deb_pkg" ]; then
502
+ echo "deb package not found: $deb_pkg"
503
+ ls -l ./build
504
+ exit 1
505
+ fi
506
+
500
507
gcloud config set project coder-dogfood
501
508
for region in "${regions[@]}"; do
502
509
echo "::group::$region"
503
510
set -- $region
504
511
512
+ set -x
505
513
gcloud config set compute/zone "$1"
506
- gcloud compute scp ./build/coder_*_linux_amd64.deb "$2" :/tmp/coder.deb
514
+ gcloud compute scp "$deb_pkg" "${2} :/tmp/coder.deb"
507
515
gcloud compute ssh "$2" -- /bin/sh -c "set -eux; sudo dpkg -i --force-confdef /tmp/coder.deb; sudo systemctl daemon-reload; sudo service '$3' restart"
516
+ set +x
508
517
509
518
echo "::endgroup::"
510
519
done
You can’t perform that action at this time.
0 commit comments