From 0d8ed7654e0a434722f47a76a5fb566a7fc2b500 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Mon, 15 Jun 2026 16:15:50 +0200 Subject: [PATCH] ci(release): trigger docker build via workflow_dispatch --- .github/workflows/docker.yml | 4 ++++ .github/workflows/release.yml | 22 ++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7fd1925b..ec32e7de 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -10,6 +10,10 @@ on: required: true type: string workflow_dispatch: + inputs: + version: + required: false + type: string permissions: contents: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3baf315..fb2cc08d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,8 +11,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - outputs: - version: ${{ steps.version.outputs.result }} + actions: write steps: - name: Extract version from labels @@ -50,9 +49,16 @@ jobs: core.info(`Created release ${version}`); - docker: - needs: release - uses: ./.github/workflows/docker.yml - with: - version: ${{ needs.release.outputs.version }} - secrets: inherit + - name: Trigger Docker image build + uses: actions/github-script@v7 + with: + script: | + const version = '${{ steps.version.outputs.result }}'; + await github.rest.actions.createWorkflowDispatch({ + owner: context.repo.owner, + repo: context.repo.repo, + workflow_id: 'docker.yml', + ref: 'main', + inputs: { version }, + }); + core.info(`Dispatched docker.yml build for ${version}`);