From a8cbe40f66970df9c95d4e5305160e6f418b6c3b Mon Sep 17 00:00:00 2001 From: rasulov1337 <117843890+rasulov1337@users.noreply.github.com> Date: Sun, 15 Dec 2024 04:35:38 +0300 Subject: [PATCH] --- .github/workflows/docker.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6262934..24cb953 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,9 +16,6 @@ jobs: key: ${{ secrets.SSH_PRIVATE_KEY }} script: | cd /opt/backend-deploy - git init - git remote add origin ${{ github.server_url }}/${{ github.repository }} - git fetch origin ${{ github.ref }} - git reset --hard origin/${{ github.ref }} + sudo git clone ${{ github.server_url }}/${{ github.repository }} . sudo docker compose build --no-cache sudo docker compose up -d --remove-orphans