ci: 添加 Gitea Actions 示例工作流
- 新增 ci.yaml 文件,定义 Gitea Actions 示例
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user