From 06e5c364a8c1422187570d4ef397cb1f09896eb3 Mon Sep 17 00:00:00 2001 From: hu xiaotong <416314413@163.com> Date: Tue, 8 Jul 2025 17:17:23 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=20Gitea=20Actions=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 ci.yaml 文件,定义 Gitea Actions 示例 --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d07059d..202bc09 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,7 @@ steps: - go/pkg/mod - ~/.cache/go-build backend: local - cache_key: go-mod-cache-{{ checksum "go.sum" }} + cache_key: go-mod-cache-{{ branch }} - name: build image: golang:1.22 @@ -29,7 +29,7 @@ steps: - go/pkg/mod - ~/.cache/go-build backend: local - cache_key: go-mod-cache-{{ checksum "go.sum" }} + cache_key: go-mod-cache-{{ branch }} - name: upload image: appleboy/drone-scp