Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
required: true
type: string
workflow_dispatch:
inputs:
version:
required: false
type: string

permissions:
contents: write
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}`);
Loading