From 0a7ed0c75d07fb939d79cd6056862219bbf00897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lancelot=20de=20Ferri=C3=A8re?= Date: Wed, 27 Oct 2021 15:46:16 +0200 Subject: [PATCH] WIP deploy --- .github/workflows/deploy.yml | 2 +- scripts/deploy.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 scripts/deploy.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e87a38fd..5e866d4d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,4 +17,4 @@ jobs: export_default_credentials: true - name: SSH to VM & deploy. - run: gcloud compute ssh ${{ secrets.GCP_INSTANCE }} --zone="europe-west3-c" --ssh-key-expire-after=2m --command="git clone https://github.com/S-L-Technologies/brq-builder.git && brq-builder/scripts/deploy.sh" + run: gcloud compute ssh ci@${{ secrets.GCP_INSTANCE }} --zone="europe-west3-c" --ssh-key-expire-after=2m --command="cd brq-builder && git pull && scripts/deploy.sh" diff --git a/scripts/deploy.sh b/scripts/deploy.sh old mode 100644 new mode 100755