Refactor Docker installation step to simplify setup and ensure service starts
Build And Push Image / docker (push) Failing after 1s Details

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

View File

@ -16,19 +16,12 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Docker - name: Install 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
fi sudo systemctl start docker
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: |