前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Gitlab 集成企业微信发通知和语音播报

Gitlab 集成企业微信发通知和语音播报

作者头像
netkiller old
发布2021-10-08 10:45:58
2.3K0
发布2021-10-08 10:45:58
举报
文章被收录于专栏:NetkillerNetkiller
代码语言:javascript
复制
neo@MacBook-Pro-Neo ~/workspace/devops % bin/wechat 
Usage: wechat [options] message

Options:
  -h, --help            show this help message and exit
  -c /usr/local/etc/wechat.ini, --config=/usr/local/etc/wechat.ini
                        config file
  -t "1|2|3", --totag="1|2|3"
                        tag
  --debug               debug mode

Homepage: http://www.netkiller.cn  Author: Neo <netkiller@msn.com>
代码语言:javascript
复制
cache:
  paths:
    - node_modules

stages: 
  - build
  # - test
  - deploy

build-job: 
  stage: build
  script:
    - npm install express --save

deploy-job:
  stage: deploy
  before_script:
    - wechat -c /etc/wechat.ini -t 1 开发环境准备部署
  after_script:
    - wechat -c /etc/wechat.ini -t 1 开发环境部署完成
  script:
    # - rsync -auzv --delete * www@192.168.30.10:/opt/netkiller.cn/www.netkiller.cn/
    - lrsync '*' www@192.168.30.10:/opt/netkiller.cn/www.netkiller.cn/
    - ssh www@192.168.30.10 "pm2 --update-env restart /opt/netkiller.cn/www.netkiller.cn/app.js"
代码语言:javascript
复制
neo@MacBook-Pro-Neo ~/workspace/devops % bin/voice 
Usage: voice [options] message

Options:
  -h, --help            show this help message and exit
  --config=/usr/local/etc/notification.ini
                        config file
  -t, --test            voice test
  -s SAVE, --save=SAVE  save as wav file
  --debug               debug mode

  Subscribe:
    -d, --daemon        run as daemon

  Publish:
    -c notification, --channel=notification
                        pubsub channel

Homepage: http://www.netkiller.cn  Author: Neo <netkiller@msn.com>
本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2021-09-30,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 Netkiller 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档