mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #1435] [MERGED] feat: trigger docker build after release #7465
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1435
Author: @cheahjs
Created: 4/5/2024
Status: ✅ Merged
Merged: 4/7/2024
Merged by: @tjbck
Base:
dev← Head:fix/build-docker-tag📝 Commits (1)
b7ced4efeat: trigger docker build after release📊 Changes
2 files changed (+12 additions, -0 deletions)
View changed files
📝
.github/workflows/build-release.yml(+11 -0)📝
.github/workflows/docker-build.yaml(+1 -0)📄 Description
Pull Request Checklist
Description
Fixes the Docker workflow not building tagged images.
This was because releases are programatically created via GitHub Actions, and it is designed specifically such that any events originating from an action cannot trigger another action, as such the release action creating a new tag wasn't triggering the tagged Docker build (only the
mainbranch build would have been triggered on push).This fixes the inability to trigger by allowing the Docker workflow to be triggered by
workflow_dispatchevents, and the release workflow will manually trigger a tagged Docker build once it's done creating the release.Test example:
This still isn't ideal, since Docker builds are triggered twice, and you end up with different Docker images for what is effectively the same underlying Git commit (
main,git-<hash>,<tag>should all ideally point to the same image).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.