From 4c9db6f60cdea869c8f7c64f903a8cea2b4a9e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20ROBERT?= Date: Mon, 16 Nov 2026 12:39:40 +0100 Subject: [PATCH] =?UTF-8?q?ci(release):=20l=20appliance=20se=20construit?= =?UTF-8?q?=20apr=C3=A8s=20la=20release,=20appel=C3=A9e=20par=20release.ym?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les deux workflows partaient en parallèle sur le tag (vu sur v0.9.7), alors que l en-tête de appliance.yml promettait « après la Release ». L appliance devient un workflow appelé (workflow_call) par le dernier job de release.yml, qui attend la création de la Release GitHub, donc la publication PyPI. workflow_dispatch reste pour rattraper un build. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/appliance.yml | 13 ++++++++++--- .github/workflows/release.yml | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/appliance.yml b/.github/workflows/appliance.yml index d84f579..a156702 100644 --- a/.github/workflows/appliance.yml +++ b/.github/workflows/appliance.yml @@ -1,6 +1,9 @@ # Construit l'appliance dsoxlab et l'attache à une Release. # -# Workflow SÉPARÉ de `release.yml`, pour deux raisons : +# Appelé par `release.yml` (`workflow_call`) en DERNIER job, une fois la +# version sur PyPI et la Release GitHub créée. Avant, les deux workflows +# partaient en parallèle sur le tag, et rien n'imposait l'ordre que ce fichier +# promettait. Il reste un fichier à part, pour deux raisons : # # 1. `workflow_dispatch` permet de l'éprouver sans poser de tag. Greffé à la # release, ce job n'aurait tourné qu'au prochain tag mineur, c'est-à-dire @@ -24,8 +27,12 @@ name: Appliance on: - push: - tags: ["v[0-9]+.[0-9]+.[0-9]+"] + workflow_call: + inputs: + tag: + description: "Release à laquelle attacher les images" + required: true + type: string workflow_dispatch: inputs: tag: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0425866..95a3de5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -222,3 +222,17 @@ jobs: --title "$TAG" \ --notes-file release-notes.md \ dist/* provenance.intoto.jsonl + + appliance: + name: Appliance + # LAST, once the version is on PyPI and the GitHub Release exists: the image + # attaches to that Release, and a 20-minute build must never delay nor fail + # a publication. Before, the appliance ran in parallel on the same tag. + needs: [github_release] + permissions: + contents: write # attach the images to the Release + id-token: write # provenance attestation + attestations: write + uses: ./.github/workflows/appliance.yml + with: + tag: ${{ github.ref_name }}