CI : checkout Git direct dans le job publish
Some checks failed
Publier l'image Docker / test (push) Successful in 24s
Publier l'image Docker / publish (push) Failing after 7s

Le conteneur docker:27-cli (Alpine) n'a pas Node -> actions/checkout (action
JS) échoue avec « exec: "node": not found ». Remplacé par un clone Git du
dépôt public (git init + fetch --depth 1 + checkout FETCH_HEAD).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Nicolas 2026-09-10 08:58:10 +02:00
parent 7be173e08e
commit 5bff28fefe

View file

@ -54,10 +54,16 @@ jobs:
container:
image: docker:27-cli
steps:
- name: Outils
run: apk add --no-cache git
- uses: https://github.com/actions/checkout@v4
# `docker:27-cli` (Alpine) n'a pas Node : on ne peut pas utiliser
# actions/checkout (action JS). Clone Git direct du dépôt public.
- name: Récupérer les sources
run: |
set -eu
apk add --no-cache git
git init -q
git remote add origin "${{ github.server_url }}/${{ github.repository }}.git"
git fetch -q --depth 1 origin "${{ github.ref_name }}"
git checkout -q FETCH_HEAD
- name: Calculer les tags
id: tags