forked from open-webui/open-webui
feat: trigger docker build after release
This commit is contained in:
parent
7a7d1931d9
commit
b7ced4e4f1
2 changed files with 12 additions and 0 deletions
11
.github/workflows/build-release.yml
vendored
11
.github/workflows/build-release.yml
vendored
|
@ -57,3 +57,14 @@ jobs:
|
||||||
path: .
|
path: .
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Trigger Docker build workflow
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
github.rest.actions.createWorkflowDispatch({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
workflow_id: 'docker-build.yaml',
|
||||||
|
ref: 'v${{ steps.get_version.outputs.version }}',
|
||||||
|
})
|
||||||
|
|
1
.github/workflows/docker-build.yaml
vendored
1
.github/workflows/docker-build.yaml
vendored
|
@ -3,6 +3,7 @@ name: Create and publish a Docker image
|
||||||
|
|
||||||
# Configures this workflow to run every time a change is pushed to the branch called `release`.
|
# Configures this workflow to run every time a change is pushed to the branch called `release`.
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
Loading…
Reference in a new issue