Refactor Docker setup step to check for existing installation and verify functionality
Some checks failed
Build And Push Image / docker (push) Failing after 1s

This commit is contained in:
2025-08-06 15:55:35 +02:00
parent 13eb09035f
commit e5dcc3d67b

View File

@@ -16,12 +16,19 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Docker
- name: Setup Docker
run: |
# Check if Docker is already available
if ! command -v docker &> /dev/null; then
sudo apt-get update
sudo apt-get install -y docker.io
sudo systemctl start docker
sudo usermod -aG docker $USER
fi
# Verify Docker is working
docker --version
# Test Docker access (skip if already working)
docker info || echo "Docker daemon accessible via socket"
- name: Build Docker Image
run: |