Add in docker CE?
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 22s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 22s
This commit is contained in:
parent
67a422ffb4
commit
56a9d808cd
1 changed files with 25 additions and 0 deletions
|
@ -26,6 +26,31 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Recommended for metadata action
|
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
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue