Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
giaogiao | 4f511cd99a | |
giaogiao | 6f4439ece2 | |
giaogiao | 1699d455b5 | |
giaogiao | 7b9d006142 |
22
.drone.yml
22
.drone.yml
|
@ -64,15 +64,29 @@ 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: false
|
message_pic: true
|
||||||
|
sha_link: true
|
||||||
when:
|
when:
|
||||||
status: [failure, success]
|
status: [ failure, success ]
|
||||||
volumes:
|
volumes:
|
||||||
- name: outdir
|
- name: outdir
|
||||||
host:
|
host:
|
||||||
|
|
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…
Reference in New Issue