Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhinav232004 committed Mar 7, 2024
1 parent bc17b3c commit 915277d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 915277d

Please sign in to comment.