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