mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
feat: build steps for UI Docker image, tagging
This commit is contained in:
parent
ff33f5494d
commit
b3fdf2e2c8
1 changed files with 28 additions and 0 deletions
28
.github/workflows/docker-publish.yml
vendored
28
.github/workflows/docker-publish.yml
vendored
|
@ -86,6 +86,34 @@ jobs:
|
||||||
labels: ${{ steps.meta-cpu.outputs.labels }}
|
labels: ${{ steps.meta-cpu.outputs.labels }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|
||||||
|
# Extract metadata for UI image
|
||||||
|
- name: Extract metadata (tags, labels) for UI Docker
|
||||||
|
id: meta-ui
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
flavor: |
|
||||||
|
suffix=-ui
|
||||||
|
tags: |
|
||||||
|
type=raw,value=latest
|
||||||
|
type=ref,event=branch
|
||||||
|
type=ref,event=pr
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern={{major}}
|
||||||
|
type=sha
|
||||||
|
|
||||||
|
# Build and push UI version
|
||||||
|
- name: Build and push UI Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: ./ui
|
||||||
|
file: ./ui/Dockerfile
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.meta-ui.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta-ui.outputs.labels }}
|
||||||
|
platforms: linux/amd64
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Reference in a new issue