From 94330a63a047e06de1c9d0718d411bacb2a41eb8 Mon Sep 17 00:00:00 2001 From: Yashvardhan Arora Date: Fri, 17 May 2024 03:10:21 +0530 Subject: [PATCH] Add shell script to docker group to access docker daemon --- .github/workflows/build-deploy.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-deploy.yaml index c3114d0..bedd4e6 100644 --- a/.github/workflows/build-deploy.yaml +++ b/.github/workflows/build-deploy.yaml @@ -49,6 +49,13 @@ jobs: #!/bin/bash set -e + # Ensure the user is added to the docker group + sudo usermod -aG docker $(whoami) + + # Log out and back in to apply the group change + newgrp docker <