|
|
|
@ -12,11 +12,25 @@ steps:
@@ -12,11 +12,25 @@ steps:
|
|
|
|
|
# commands: |
|
|
|
|
# # - "npm run build" |
|
|
|
|
# - "npm test -- --watchAll=false" |
|
|
|
|
# - "npm test -- --watchAll=false" |
|
|
|
|
- name: notify |
|
|
|
|
image: curlimages/curl:7.80.0 |
|
|
|
|
environment: |
|
|
|
|
GCHAT_WH: |
|
|
|
|
from_secret: GCHAT_WH |
|
|
|
|
commands: |
|
|
|
|
- "curl -X 'POST' $GCHAT_WH -H 'Content-type:application/json' -d '{\"text\":\"Yes I am a CICD AI, i have just become sentient\"}' " |
|
|
|
|
- name: deploy |
|
|
|
|
image: appleboy/drone-ssh |
|
|
|
|
settings: |
|
|
|
|
host: |
|
|
|
|
from_secret: stage_server |
|
|
|
|
username: drone |
|
|
|
|
key: |
|
|
|
|
from_secret: sshkey |
|
|
|
|
command_timeout: 2m |
|
|
|
|
script: |
|
|
|
|
- echo "Hello World" |
|
|
|
|
# - name: notify |
|
|
|
|
# image: curlimages/curl:7.80.0 |
|
|
|
|
# environment: |
|
|
|
|
# GCHAT_WH: |
|
|
|
|
# from_secret: GCHAT_WH |
|
|
|
|
# commands: |
|
|
|
|
# - > |
|
|
|
|
# curl $GCHAT_WH |
|
|
|
|
# -X 'POST' |
|
|
|
|
# -H 'Content-type:application/json' |
|
|
|
|
# -d '{\"text\":\"This message is from Drone\"}' " |
|
|
|
|