From 5bff28fefef69d28fa2fd3dd262dd565365ae711 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 10 Sep 2026 08:58:10 +0200 Subject: [PATCH] CI : checkout Git direct dans le job publish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .forgejo/workflows/publish-docker.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/publish-docker.yml b/.forgejo/workflows/publish-docker.yml index 6706e7d..e85bb71 100644 --- a/.forgejo/workflows/publish-docker.yml +++ b/.forgejo/workflows/publish-docker.yml @@ -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