Install docker CLI in node:20 base instead of using docker image

This commit is contained in:
Ryan Moon
2026-03-31 18:41:15 -05:00
parent 2c731a6957
commit c1398800c5

View File

@@ -10,12 +10,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: docker:24
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Docker CLI
run: |
apt-get update -qq
apt-get install -y ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo $VERSION_CODENAME) stable" > /etc/apt/sources.list.d/docker.list
apt-get update -qq
apt-get install -y docker-ce-cli
- name: Login to Gitea registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.lunarfront.tech -u ryan --password-stdin