Browse Source

test gchat

master
Ricardo A Carrasco 2 years ago
parent
commit
bb87e7cb40
  1. 22
      .drone.yml

22
.drone.yml

@ -3,21 +3,21 @@ type: docker
name: default name: default
steps: steps:
- name: init # - name: init
image: node:16-alpine # image: node:16-alpine
commands: # commands:
- "npm install" # - "npm install"
- name: start # - name: start
image: node:16-alpine # image: node:16-alpine
commands: # commands:
# - "npm run build" # # - "npm run build"
- "npm test -- --watchAll=false" # - "npm test -- --watchAll=false"
- "npm test -- --watchAll=false" # - "npm test -- --watchAll=false"
- name: notify - name: notify
image: alpine:3 image: alpine:3
environment: environment:
GCHAT_WH: GCHAT_WH:
from_secret: GCHAT_WH from_secret: GCHAT_WH
commands: commands:
- "sudo apt install curl" - "apt install curl"
- "curl -X 'POST' '$GCHAT_WH' -H 'Content-type:application/json' -d '{'text':'Drone says hello'}' " - "curl -X 'POST' '$GCHAT_WH' -H 'Content-type:application/json' -d '{'text':'Drone says hello'}' "

Loading…
Cancel
Save