ci: 添加 Gitea Actions 示例工作流

- 新增 ci.yaml 文件,定义 Gitea Actions 示例
This commit is contained in:
hu xiaotong
2025-07-09 09:17:07 +08:00
parent 57a1d18718
commit 24041c9f28

View File

@@ -9,7 +9,9 @@ steps:
- go env -w GO111MODULE=on - go env -w GO111MODULE=on
- go env -w GOPROXY=https://goproxy.cn,direct - go env -w GOPROXY=https://goproxy.cn,direct
- go mod tidy - 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 - name: upload
image: appleboy/drone-scp image: appleboy/drone-scp
@@ -20,7 +22,7 @@ steps:
from_secret: scp_password from_secret: scp_password
port: 222 port: 222
source: source:
- linux_amd64/main - main
# - scripts/start.sh # - scripts/start.sh
target: /opt/dockeropt/epic-go target: /opt/dockeropt/epic-go