Swap to alpine
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 30s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 30s
This commit is contained in:
parent
fae20b4c97
commit
9078005d2f
1 changed files with 3 additions and 16 deletions
|
@ -15,7 +15,7 @@ env:
|
|||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest # Or your preferred runner with Docker
|
||||
runs-on: alpine-latest # Or your preferred runner with Docker
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write # Still required for pushing to the registry
|
||||
|
@ -28,21 +28,8 @@ jobs:
|
|||
|
||||
- name: Install Docker Client CLI
|
||||
run: |
|
||||
# Add Docker's official GPG key:
|
||||
apt-get update
|
||||
apt-get install ca-certificates curl
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
|
||||
chmod a+r /etc/apt/keyrings/docker.asc
|
||||
|
||||
# Add the repository to Apt sources:
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
apt-get update
|
||||
echo "Installing docker-ce-cli..."
|
||||
apt-get install -y docker-ce-cli # Install only the client package
|
||||
echo "Installing Docker client"
|
||||
apk add docker
|
||||
echo "Verifying docker client..."
|
||||
docker --version
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue