Change docker CE install.
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 25s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 25s
This commit is contained in:
parent
56a9d808cd
commit
fae20b4c97
1 changed files with 12 additions and 17 deletions
|
@ -28,24 +28,19 @@ jobs:
|
||||||
|
|
||||||
- name: Install Docker Client CLI
|
- name: Install Docker Client CLI
|
||||||
run: |
|
run: |
|
||||||
echo "Updating package list..."
|
# Add Docker's official GPG key:
|
||||||
apt-get update -y
|
apt-get update
|
||||||
echo "Installing prerequisites..."
|
apt-get install ca-certificates curl
|
||||||
apt-get install -y --no-install-recommends \
|
install -m 0755 -d /etc/apt/keyrings
|
||||||
apt-transport-https \
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||||
ca-certificates \
|
chmod a+r /etc/apt/keyrings/docker.asc
|
||||||
curl \
|
|
||||||
gnupg \
|
# Add the repository to Apt sources:
|
||||||
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 \
|
echo \
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
|
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||||
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||||
echo "Updating package list again..."
|
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
apt-get update -y
|
apt-get update
|
||||||
echo "Installing docker-ce-cli..."
|
echo "Installing docker-ce-cli..."
|
||||||
apt-get install -y docker-ce-cli # Install only the client package
|
apt-get install -y docker-ce-cli # Install only the client package
|
||||||
echo "Verifying docker client..."
|
echo "Verifying docker client..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue