From 915277df534e100a4146b2d4ba9157a5239b41ae Mon Sep 17 00:00:00 2001 From: Abhinav232004 Date: Thu, 7 Mar 2024 10:52:22 +0530 Subject: [PATCH] changes --- .github/workflows/docker.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 568c38f..15fcc0f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -70,15 +70,13 @@ jobs: fi " - name: SSH into the VM and build the Docker image - env: - BRANCH_NAME: ${{secrets.BRANCH_NAME}} run: | REPO_PATH=~ repo_name=$(echo "${{ github.repository }}" | cut -d '/' -f 2) gcloud compute ssh ${{ secrets.GCP_INSTANCE_NAME}} --zone=${{ secrets.GCP_ZONE }} --command " REPO_PATH=\$HOME cd \$REPO_PATH/$repo_name && - git checkout soc && + git checkout ${{secrets.BRANCH_NAME}} && cp .env.example .env && sudo docker-compose -f docker-compose.yml up -d"