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

This commit is contained in:
Matt 2025-08-06 15:55:35 +02:00
parent 13eb09035f
commit e5dcc3d67b
1 changed files with 12 additions and 5 deletions

View File

@ -16,12 +16,19 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Docker - name: Setup Docker
run: | run: |
# Check if Docker is already available
if ! command -v docker &> /dev/null; then
sudo apt-get update sudo apt-get update
sudo apt-get install -y docker.io sudo apt-get install -y docker.io
sudo systemctl start docker fi
sudo usermod -aG docker $USER
# 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 - name: Build Docker Image
run: | run: |