diff --git a/.drone.yml b/.drone.yml index d37090a..71f023d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,6 +44,7 @@ steps: - sed -i 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html - sed -i 's?/logo192.png?/static/logo192.png?g' ./app/index.html - sed -i 's?/manifest.json?/static/manifest.json?g' ./app/index.html + - apt install build-essential -y - bash bulid.sh - name: 打包Docker镜像并推送 @@ -63,7 +64,16 @@ steps: when: event: push branch: master - + +- name: 钉钉通知 + image: lddsb/drone-dingtalk-message + settings: + token: e53b19defd95a6f27ca766051b3ba047328760b0bbcd7c9fb6e74bc33635eb07 + type: markdown + secret: SECad13514bd7dee3fa73eeec19c32cfa2495a0f94976162f8534af956be30870e4 + debug: true + when: + status: [failure, success] volumes: - name: outdir host: diff --git a/bulid.sh b/bulid.sh index a54e2bd..b50def9 100644 --- a/bulid.sh +++ b/bulid.sh @@ -46,6 +46,6 @@ do echo "Start compiling the system:${array[0]} architecture:${array[1]}" # echo "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=0 GOOS=${array[0]} GOARCH=${array[1]} go build -o ${array[0]}_${array[1]}_main${extension} + CGO_ENABLED=1 GOOS=${array[0]} GOARCH=${array[1]} go build -o ${array[0]}_${array[1]}_main${extension} cp ${array[0]}_${array[1]}_main${extension} /root/web/ done