sac/.gitea/workflows/builder-ui.yaml
jun 5a2a299bb2
Some checks failed
Build and Push Docker Image / build (push) Failing after 24s
ci(sf-ui): 添加 UI 项目的 Docker 镜像构建和推送流程
- 新增 builder-ui.yaml 工作流,用于在 Gitea 上构建和推送 Docker 镜像
- 在 Makefile 中添加 ui 目标,支持本地构建
- 更新 sf-ui/Dockerfile,使用多阶段构建以减小镜像大小
2025-05-16 06:24:24 -04:00

26 lines
608 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main # 触发分支
- ca_router
- "releases/*" # 可选通配符
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: docker/checkout@v4
- name: Login to docker.yzj
uses: docker/login-action@v3
with:
registry: docker.yzj
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: 构建 Docker 镜像
run:
cd sf-ui && docker build -t docker.yzj/sac/sf-ui -f ./Dockerfile --push .