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
uses: actions/checkout@v4
- name: Setup Docker
- name: Install 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
fi
# Verify Docker is working
docker --version
# Test Docker access (skip if already working)
docker info || echo "Docker daemon accessible via socket"
sudo apt-get update
sudo apt-get install -y docker.io
sudo systemctl start docker
sudo usermod -aG docker $USER
- name: Build Docker Image
run: |