From 9ed429d4c5660de077981159be6813b862dd03e0 Mon Sep 17 00:00:00 2001 From: Muhammed Danish <147092497+danish-kv@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:46:25 +0530 Subject: [PATCH] Update workflow file by giving sudo permission for docker --- .github/workflows/docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7ceef71..74dce6e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -52,8 +52,8 @@ jobs: run: | echo "$PRIVATE_KEY" > private_key && chmod 600 private_key ssh -o StrictHostKeyChecking=no -i private_key ${USER}@${HOST} ' - docker compose pull && - docker compose up -d && - docker image prune -f && + sudo docker compose pull && + sudo docker compose up -d && + sudo docker image prune -f && sudo systemctl restart nginx '