Skip to content

Commit

Permalink
finalize ci/cd pipeline, testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimegarjr committed Jan 27, 2025
1 parent 5d36039 commit 2c0fcba
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ jobs:
- name: Deploy to VM
run: |
gcloud compute ssh --zone "us-central1-c" "meowbot-instance-vm" --project "meowbot-448505"
gcloud compute ssh "meowbot-instance-vm" \
--zone "us-central1-c" \
--project "meowbot-448505" \
--command "
gcloud auth activate-service-account --key-file=${{ secrets.GCP_CREDENTIALS }} &&
gcloud auth configure-docker &&
docker pull gcr.io/meowbot-448505/meow-bot:latest &&
docker stop meowbot || true &&
docker rm meowbot || true &&
docker run -d --name meowbot --log-driver=gcplogs gcr.io/meowbot-448505/meow-bot:latest"
--command "gcloud compute instances update-container meowbot-instance-vm \
--container-image gcr.io/meowbot-448505/meow-bot:latest"

0 comments on commit 2c0fcba

Please sign in to comment.