forked from yystopf/gitea_hat
upgrade: .devops/gitlink正式环境
This commit is contained in:
parent
cf1341d559
commit
db7072abac
|
@ -30,22 +30,31 @@ workflow:
|
|||
- ref: golang_build_18_0
|
||||
name: golang构建
|
||||
on-failure: ignore
|
||||
task: mafeibai/golang_build_18@0.0.5
|
||||
image: golang:1.18.1-buster
|
||||
input:
|
||||
workspace: git_clone_0.git_path
|
||||
bin_name: '"gitea"'
|
||||
script:
|
||||
- apt-get install git -y
|
||||
- cd $WORKSPACE
|
||||
- go env -w CGO_ENABLED=0
|
||||
- go env -w GOPROXY=https://goproxy.cn
|
||||
- go mod tidy
|
||||
- go mod vendor
|
||||
- GOOS=linux GOARCH=amd64 go build -o gitea main.go
|
||||
- echo done
|
||||
needs:
|
||||
- git_clone_0
|
||||
- ref: scp_resource_0
|
||||
name: scp替换文件
|
||||
task: scp_resource@1.4.1
|
||||
input:
|
||||
ssh_ip: '""'
|
||||
ssh_port: '"22"'
|
||||
ssh_user: '"root"'
|
||||
remote_file: '""'
|
||||
local_file: '""'
|
||||
file_content: '""'
|
||||
workspace: git_clone_0.git_path
|
||||
ssh_private_key: ((ssh.siyao))
|
||||
ssh_ip: '"123.59.135.93"'
|
||||
ssh_port: '"51123"'
|
||||
ssh_user: '"pdl"'
|
||||
remote_file: '"/home/pdl"'
|
||||
local_file: '$WORKSPACE/gitea'
|
||||
needs:
|
||||
- golang_build_18_0
|
||||
- ref: end
|
||||
|
|
Loading…
Reference in New Issue