ci: run on ubuntu-latest; assert docker availability instead of installing
Some checks failed
dev-test-2 / build-and-push (push) Failing after 5s
dev / build-and-push (push) Failing after 8s

This commit is contained in:
Nicolas Cantu 2025-09-10 13:37:36 +02:00
parent b3cb20ab41
commit 42e79e5698

View File

@ -5,7 +5,7 @@ on:
- '*' - '*'
jobs: jobs:
build-and-push: build-and-push:
runs-on: docker runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -41,15 +41,15 @@ jobs:
git rev-parse --abbrev-ref HEAD || true git rev-parse --abbrev-ref HEAD || true
if [ -f .gitmodules ]; then echo ".gitmodules present"; cat .gitmodules; else echo "NO .gitmodules"; fi if [ -f .gitmodules ]; then echo ".gitmodules present"; cat .gitmodules; else echo "NO .gitmodules"; fi
git submodule status || true git submodule status || true
- name: Install docker client
run: |
apt-get update -y
apt-get install -y docker.io
- name: Docker info - name: Docker info
run: | run: |
which docker || true which docker || true
docker version || true if ! command -v docker >/dev/null 2>&1; then
docker info || true echo "Docker n'est pas disponible sur ce runner (ubuntu-latest)." >&2
exit 1
fi
docker version
docker info
- name: Build and push images - name: Build and push images
env: env:
REGISTRY: git.4nkweb.com REGISTRY: git.4nkweb.com