From 24041c9f28a39332cf53305c2b5ef8dd855bafa0 Mon Sep 17 00:00:00 2001 From: hu xiaotong <416314413@163.com> Date: Wed, 9 Jul 2025 09:17:07 +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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 436b16c..cbc6456 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,9 @@ steps: - go env -w GO111MODULE=on - go env -w GOPROXY=https://goproxy.cn,direct - go mod tidy - - gf build main.go -n main -a amd64 -s linux + - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o main main.go + - ls -la main + - file main - name: upload image: appleboy/drone-scp @@ -20,7 +22,7 @@ steps: from_secret: scp_password port: 222 source: - - linux_amd64/main + - main # - scripts/start.sh target: /opt/dockeropt/epic-go