Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issues with deploy script and move it to the scripts/ folder #941

Merged
merged 2 commits into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions infra/deploy.sh → scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi

gcloud container clusters get-credentials analysis-cluster --zone=us-central1-c --project=ossf-malware-analysis

pushd infra/worker || echo "pushd infra/worker failed" && exit 1
pushd infra/worker || (echo "pushd infra/worker failed" && exit 1)

echo "Were any changes made to the k8s config?"
echo "Enter y to apply config changes and then restart workers, n to just restart, ctrl-C to exit"
Expand All @@ -26,10 +26,10 @@ case $yn in
kubectl apply -f .
;;
[Nn]* )
echo "kubectl rollout restart statefulset workers-deployment"
echo "kubectl rollout restart deployment workers-deployment"
kubectl rollout restart statefulset workers-deployment
;;
esac


popd || echo "failed to popd" && exit 1
popd || (echo "failed to popd" && exit 1)