Skip to content

Commit

Permalink
Fix envd upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Jan 7, 2025
1 parent fe98c73 commit 0596d56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
9 changes: 1 addition & 8 deletions packages/envd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ start-docker:

build-and-upload:
make build
make upload-local
gcloud compute instance-groups list-instances $(PREFIX)orch-client-ig \
--zone=$(GCP_ZONE) \
--project=$(GCP_PROJECT_ID) \
--format="value(instance)" \
--quiet | xargs -I {} -P 5 sh -c "gcloud compute ssh {} --zone=$(GCP_ZONE) --command='sudo rm -rf /fc-vm/envd && \
sudo cp /mnt/disks/envs-pipeline/envd /fc-vm/envd && sudo chmod +x /fc-vm/envd"
@echo "Uploaded envd to all clients"
make upload

.PHONY: generate
generate:
Expand Down
10 changes: 0 additions & 10 deletions packages/envd/upload-local.sh

This file was deleted.

4 changes: 2 additions & 2 deletions packages/envd/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail

GCP_PROJECT_ID=$1

chmod +x dist/envd_linux_amd64_v1/envd
chmod +x bin/envd

gsutil -h "Cache-Control:no-cache, max-age=0" \
cp dist/envd_linux_amd64_v1/envd "gs://${GCP_PROJECT_ID}-fc-env-pipeline/envd"
cp bin/envd "gs://${GCP_PROJECT_ID}-fc-env-pipeline/envd"

0 comments on commit 0596d56

Please sign in to comment.