fix(cicd): install Docker CLI via static binary instead of apt
This commit is contained in:
parent
5657ec530a
commit
5769915d75
@ -24,7 +24,9 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Docker CLI
|
||||
run: apt-get update -qq && apt-get install -y -qq docker.io
|
||||
run: |
|
||||
curl -fsSL https://download.docker.com/linux/static/stable/aarch64/docker-27.3.1.tgz \
|
||||
| tar xzf - --strip-components=1 -C /usr/local/bin docker/docker
|
||||
|
||||
- name: Login to Gitea registry
|
||||
run: |
|
||||
|
||||
@ -100,10 +100,11 @@ resource "kubernetes_deployment" "act_runner" {
|
||||
command = ["/bin/sh", "-c"]
|
||||
args = [<<-EOT
|
||||
set -e
|
||||
echo "Waiting for Docker daemon..."
|
||||
until docker -H tcp://localhost:2375 info > /dev/null 2>&1; do
|
||||
echo "Waiting for Docker daemon on :2375..."
|
||||
until nc -z localhost 2375 2>/dev/null; do
|
||||
sleep 2
|
||||
done
|
||||
sleep 1
|
||||
echo "Docker daemon ready."
|
||||
if [ ! -f /data/.runner ]; then
|
||||
act_runner register \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user