From 387ba2c49474f53571e10e9f98d3b60d490d252f Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Wed, 25 Nov 2026 11:29:12 +0100 Subject: [PATCH] Publish the runtimes after a release Triggers the Publish workflow of brefphp/runtimes-publishing once the images are on Docker Hub. --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f9dbc03..e3ed51b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,3 +48,25 @@ jobs: USE_DEPOT: 1 DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }} DOCKER_TAG: ${{ steps.get_version.outputs.VERSION }} + + # Publishes the images as a new version of the AWS Lambda runtimes (brefphp/runtimes-publishing, private) + publish-runtimes: + name: Publish the runtimes + runs-on: ubuntu-24.04 + needs: [ release ] + # Only for releases: a manual run publishes images tagged with the branch name + if: github.event_name == 'release' + steps: + - uses: actions/github-script@v9 + with: + github-token: ${{ secrets.GH_TOKEN_TRIGGER }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'brefphp', + repo: 'runtimes-publishing', + workflow_id: 'publish.yml', + ref: 'main', + inputs: { + version: context.payload.release.tag_name, + }, + })