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