perf: 保留基础镜像缓存 + kubectl 装到 /usr/bin 避开 bind mount 冲突
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 43m21s
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 43m21s
This commit is contained in:
parent
83a67029a8
commit
cbfa704299
@ -91,7 +91,7 @@ jobs:
|
|||||||
curl -LO "https://files.m.daocloud.io/dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl" && break
|
curl -LO "https://files.m.daocloud.io/dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl" && break
|
||||||
echo "Download attempt $attempt failed, retrying in 5s..." && sleep 5
|
echo "Download attempt $attempt failed, retrying in 5s..." && sleep 5
|
||||||
done
|
done
|
||||||
chmod +x kubectl && mv kubectl /usr/local/bin/
|
chmod +x kubectl && mv kubectl /usr/bin/kubectl
|
||||||
fi
|
fi
|
||||||
kubectl version --client
|
kubectl version --client
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
docker container prune -f
|
docker container prune -f
|
||||||
docker image prune -a -f
|
docker image prune -f
|
||||||
docker builder prune -a -f
|
docker builder prune -a -f
|
||||||
echo "Disk usage after cleanup:"
|
echo "Disk usage after cleanup:"
|
||||||
df -h / | tail -1
|
df -h / | tail -1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user