Add in docker CE?
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 22s

This commit is contained in:
Cameron Redmore 2025-04-18 14:36:49 +01:00
parent 67a422ffb4
commit 56a9d808cd

View file

@ -26,6 +26,31 @@ jobs:
with:
fetch-depth: 0 # Recommended for metadata action
- name: Install Docker Client CLI
run: |
echo "Updating package list..."
apt-get update -y
echo "Installing prerequisites..."
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
echo "Adding Docker GPG key..."
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "Setting up Docker repository..."
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
echo "Updating package list again..."
apt-get update -y
echo "Installing docker-ce-cli..."
apt-get install -y docker-ce-cli # Install only the client package
echo "Verifying docker client..."
docker --version
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3