Files
intelligent-daily-report-sy…/.gitea/workflows/build-push.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 24: cannot unmarshal !!map into string line 25: cannot unmarshal !!map into string line 39: cannot unmarshal !!map into string line 40: cannot unmarshal !!map into string
2026-02-25 15:22:23 +08:00

41 lines
1.1 KiB
YAML

name: 发布 Docker 镜像
on:
release:
types: [published]
jobs:
push_to_registry:
name: 推送 Docker 镜像到 Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: 检出仓库代码
uses: https://git.kakunet.top/actions/checkout@v4
- name: 登录到 Gitea Docker Hub
uses: https://git.kakunet.top/docker/login-action@v3
with:
registry: git.yinlihupo.cn
username: { secrets.DOCKER_USERNAME }
password: { secrets.DOCKER_PASSWORD }
- name: 提取 Docker 元数据(标签、标记)
id: meta
uses: https://git.kakunet.top/docker/metadata-action@v5
with:
images: git.yinlihupo.cn/warmonion/intelligent-daily-report-system
- name: 构建并推送后端 Docker 镜像
uses: https://git.kakunet.top/docker/build-push-action@v5
with:
context: .
file: ./dockerfile
push: true
tags: { steps.meta.outputs.tags }
labels: { steps.meta.outputs.labels }