cea9b941cf
Build and Push / build (push) Failing after 13m20s
Go 项目,包含: - 服务端 updater:两阶段协议,ECDSA 签名验证,AES-GCM 加密 - 发送端 dcu-send:Gitea Action CLI - internal/auth:加解密/签名/会话管理 - internal/docker:Docker CLI 容器查找/拉取/重建 - action/:Gitea Action 定义 - deploy/Dockerfile:多阶段构建 - .gitea/workflows/build.yaml:CI/CD
35 lines
943 B
YAML
35 lines
943 B
YAML
name: Docker Compose Updater
|
||
description: 触发远程 docker-compose 服务更新(拉取/重启)
|
||
author: docker-compose-updater
|
||
branding:
|
||
icon: refresh-cw
|
||
color: blue
|
||
|
||
inputs:
|
||
url:
|
||
description: Updater 地址,如 https://updater.example.com
|
||
required: true
|
||
project:
|
||
description: docker-compose 项目名
|
||
required: true
|
||
service:
|
||
description: 要操作的 service 名(api、frontend 等)
|
||
required: true
|
||
action:
|
||
description: '操作类型: update(拉取+重启) / pull(仅拉取) / restart(仅重启)'
|
||
required: false
|
||
default: update
|
||
signing_key:
|
||
description: ECDSA 签名私钥 PEM 内容(Gitea Secret)
|
||
required: true
|
||
|
||
runs:
|
||
using: docker
|
||
image: Dockerfile
|
||
env:
|
||
SIGNING_KEY: ${{ inputs.signing_key }}
|
||
UPDATER_URL: ${{ inputs.url }}
|
||
UPDATER_PROJECT: ${{ inputs.project }}
|
||
UPDATER_SERVICE: ${{ inputs.service }}
|
||
UPDATER_ACTION: ${{ inputs.action }}
|