Fix: Install latest Docker CLI binary manually
All checks were successful
Infrastructure Audit / audit (push) Successful in 26s
All checks were successful
Infrastructure Audit / audit (push) Successful in 26s
This commit is contained in:
@@ -6,8 +6,6 @@ jobs:
|
|||||||
audit:
|
audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
# Використовуємо образ Node (щоб працював checkout)
|
|
||||||
# Секцію volumes ми ПРИБРАЛИ, бо Runner робить це сам
|
|
||||||
image: node:16-bullseye
|
image: node:16-bullseye
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Check out repository
|
- name: 📥 Check out repository
|
||||||
@@ -15,9 +13,21 @@ jobs:
|
|||||||
|
|
||||||
- name: 🛠️ Setup Tools
|
- name: 🛠️ Setup Tools
|
||||||
run: |
|
run: |
|
||||||
# Встановлюємо Docker CLI (щоб говорити з сокетом, який вже там є)
|
# Встановлюємо Python
|
||||||
apt-get update
|
apt-get update && apt-get install -y python3 curl tar
|
||||||
apt-get install -y docker.io python3
|
|
||||||
|
# Завантажуємо НАЙНОВІШИЙ Docker CLI вручну (Static Binary)
|
||||||
|
echo "⬇️ Downloading latest Docker CLI..."
|
||||||
|
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz -o docker.tgz
|
||||||
|
|
||||||
|
# Розпаковуємо і встановлюємо
|
||||||
|
tar xzvf docker.tgz
|
||||||
|
mv docker/docker /usr/local/bin/docker
|
||||||
|
chmod +x /usr/local/bin/docker
|
||||||
|
rm -rf docker docker.tgz
|
||||||
|
|
||||||
|
# Перевіряємо версію
|
||||||
|
docker --version
|
||||||
|
|
||||||
- name: 🐍 Run Audit Script
|
- name: 🐍 Run Audit Script
|
||||||
run: python3 audit.py
|
run: python3 audit.py
|
||||||
|
|||||||
Reference in New Issue
Block a user