You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
809 B

2 years ago
kind: pipeline
type: docker
name: default
steps:
2 years ago
# - name: init
# image: node:16-alpine
# commands:
# - "npm install"
# - name: start
# image: node:16-alpine
# commands:
# # - "npm run build"
# - "npm test -- --watchAll=false"
2 years ago
- name: deploy
image: drillster/drone-rsync
2 years ago
settings:
2 years ago
hosts: ["carrasco.dev"]
target: ~/test-app
user:
2 years ago
from_secret: ssh_user
2 years ago
key:
2 years ago
from_secret: ssh_key
2 years ago
script:
2 years ago
- cd test-app
2 years ago
- docker-compose restart
2 years ago
- 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'
2 years ago
-d '{"text":"This message is from Drone"}'