ci: 添加 Gitea Actions 示例工作流
- 新增 ci.yaml 文件,定义 Gitea Actions 示例
This commit is contained in:
@@ -9,7 +9,7 @@ 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
|
||||||
- GOOS=linux GOARCH=amd64 go build -o main main.go
|
- gf build main.go -n main -a amd64 -s linux
|
||||||
|
|
||||||
- name: upload
|
- name: upload
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@@ -20,7 +20,7 @@ steps:
|
|||||||
from_secret: scp_password
|
from_secret: scp_password
|
||||||
port: 222
|
port: 222
|
||||||
source:
|
source:
|
||||||
- main
|
- linux_amd64/main
|
||||||
# - scripts/start.sh
|
# - scripts/start.sh
|
||||||
target: /opt/dockeropt/epic-go
|
target: /opt/dockeropt/epic-go
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user