ci(agent): 添加新版发布与传输验证工作流

This commit is contained in:
2026-08-07 18:00:54 +08:00
parent 4cbeca4e09
commit c565e89d60
2 changed files with 48 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
name: Agent CI/CD v2
on:
push:
tags:
- "v*"
workflow_dispatch: {}
jobs:
build-test-publish-and-deploy:
uses: OrgTJWater/ci-templates/.gitea/workflows/container-cd.yml@main
with:
image_name: gitea.waternetwork.cn/orgtjwater/tjwateragent
dockerfile: Dockerfile
build_context: .
cache_image: gitea.waternetwork.cn/orgtjwater/tjwateragent:ci-cache
test_target: build
deploy_service: agent
deploy_host: 192.168.1.114
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
DEV_DEPLOY_SSH_KEY: ${{ secrets.DEV_DEPLOY_SSH_KEY }}