Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4f511cd99a | ||
|
6f4439ece2 | ||
|
1699d455b5 | ||
|
7b9d006142 | ||
|
2ded913541 | ||
|
1a00ad754f |
21
.drone.yml
21
.drone.yml
@ -19,7 +19,6 @@ steps:
|
|||||||
- mkdir /go/web
|
- mkdir /go/web
|
||||||
- ls /go/web
|
- ls /go/web
|
||||||
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git /go/web
|
- git clone https://git.shagain.club/lingling/go_echo_wol_web.git /go/web
|
||||||
- git checkout master
|
|
||||||
|
|
||||||
- name: build_web
|
- name: build_web
|
||||||
image: node
|
image: node
|
||||||
@ -65,13 +64,27 @@ steps:
|
|||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
# - name: 钉钉通知
|
||||||
|
# image: lddsb/drone-dingtalk-message
|
||||||
|
# settings:
|
||||||
|
# token: e53b19defd95a6f27ca766051b3ba047328760b0bbcd7c9fb6e74bc33635eb07
|
||||||
|
# type: markdown
|
||||||
|
# secret: SECad13514bd7dee3fa73eeec19c32cfa2495a0f94976162f8534af956be30870e4
|
||||||
|
# message_pic: true
|
||||||
|
# message_color: true
|
||||||
|
# debug: false
|
||||||
|
# when:
|
||||||
|
# status: [failure, success]
|
||||||
|
|
||||||
|
|
||||||
- name: 钉钉通知
|
- name: 钉钉通知
|
||||||
image: lddsb/drone-dingtalk-message
|
image: guoxudongdocker/drone-dingtalk
|
||||||
settings:
|
settings:
|
||||||
token: e53b19defd95a6f27ca766051b3ba047328760b0bbcd7c9fb6e74bc33635eb07
|
token: e53b19defd95a6f27ca766051b3ba047328760b0bbcd7c9fb6e74bc33635eb07
|
||||||
type: markdown
|
type: markdown
|
||||||
secret: SECad13514bd7dee3fa73eeec19c32cfa2495a0f94976162f8534af956be30870e4
|
message_color: true
|
||||||
debug: true
|
message_pic: true
|
||||||
|
sha_link: true
|
||||||
when:
|
when:
|
||||||
status: [ failure, success ]
|
status: [ failure, success ]
|
||||||
volumes:
|
volumes:
|
||||||
|
1
bulid.sh
1
bulid.sh
@ -47,4 +47,5 @@ do
|
|||||||
# CGO_ENABLED=0 GOOS=${array[0]} GOARCH=${array[1]} go build -o /root/web/${array[0]}_${array[1]}_main${extension}
|
# CGO_ENABLED=0 GOOS=${array[0]} GOARCH=${array[1]} go build -o /root/web/${array[0]}_${array[1]}_main${extension}
|
||||||
CGO_ENABLED=1 GOOS=${array[0]} GOARCH=${array[1]} go build -ldflags "-linkmode external -extldflags '-static' -s -w" -o ${array[0]}_${array[1]}_main${extension}
|
CGO_ENABLED=1 GOOS=${array[0]} GOARCH=${array[1]} go build -ldflags "-linkmode external -extldflags '-static' -s -w" -o ${array[0]}_${array[1]}_main${extension}
|
||||||
cp ${array[0]}_${array[1]}_main${extension} /root/web/
|
cp ${array[0]}_${array[1]}_main${extension} /root/web/
|
||||||
|
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user