The full yaml are as follows:
---
kind: pipeline
name: drone
steps:
- name: restore-cache
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: install
image: node
commands:
- sh ./build/pre-install.sh
- name: build
image: node
commands:
- yarn build
- name: rebuild-cache
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
trigger:
ref:
- refs/heads/master
- refs/tags/*
volumes:
- name: cache
host:
path: /var/drone-cache
in my server, drone build info
are as follows:
Get 45.76.84.10/api/repos/Damo-web/docs/builds/latest: unsupported protocol scheme ""
Here’s the github webhook post that was sent:
my server
Request Headers:
Request URL: http://45.76.84.10/hook
Request method: POST
content-type: application/json
Expect:
User-Agent: GitHub-Hookshot/71faf64
X-GitHub-Delivery: bdf785e4-905a-11e9-84a8-2b85956b87e0
X-GitHub-Event: push
X-Hub-Signature: sha1=741231cf304b08cdbb0f1dd9492f64f95f0f6faf
Request Payload:
{
"ref": "refs/tags/v1.0.1",
"before": "0000000000000000000000000000000000000000",
"after": "2969e2181514b78854334f1a462393ea371357d8",
"created": true,
"deleted": false,
"forced": false,
"base_ref": null,
"compare": "https://github.com/Damo-web/docs/compare/v1.0.1",
"commits": [
],
"head_commit": {
"id": "2969e2181514b78854334f1a462393ea371357d8",
"tree_id": "a4d84356f93f2d106a5badd43ca418f3d09443dc",
...
},
...
}
Response Headers ( 200 ):
Cache-Control: no-cache, no-store, must-revalidate, private, max-age=0
Connection: keep-alive
Content-Length: 5
Content-Type: application/json
Date: Sun, 16 Jun 2019 17:18:22 GMT
Expires: Thu, 01 Jan 1970 00:00:00 UTC
Pragma: no-cache
Server: nginx/1.17.0
X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block
Response Body:
null
drone cloud server
Request Headers:
Request URL: https://cloud.drone.io/hook
Request method: POST
content-type: application/json
Expect:
User-Agent: GitHub-Hookshot/71faf64
X-GitHub-Delivery: bdf785e4-905a-11e9-84a8-2b85956b87e0
X-GitHub-Event: push
X-Hub-Signature: sha1=acb069024dcb1c6057293faa3ea0975f609ec590
Request Payload:
{
"ref": "refs/tags/v1.0.1",
"before": "0000000000000000000000000000000000000000",
"after": "2969e2181514b78854334f1a462393ea371357d8",
"created": true,
"deleted": false,
"forced": false,
"base_ref": null,
"compare": "https://github.com/Damo-web/docs/compare/v1.0.1",
"commits": [
],
"head_commit": {
"id": "2969e2181514b78854334f1a462393ea371357d8",
"tree_id": "a4d84356f93f2d106a5badd43ca418f3d09443dc",
...
},
...
}
Response Headers ( 200 ):
Cache-Control: no-cache, no-store, must-revalidate, private, max-age=0
Content-Length: 731
Content-Type: application/json
Date: Sun, 16 Jun 2019 17:18:22 GMT
Expires: Thu, 01 Jan 1970 00:00:00 UTC
Pragma: no-cache
Strict-Transport-Security: max-age=315360000
X-Accel-Expires: 0
X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block
Response Body:
{"id":77779,"repo_id":214059,"trigger":"","number":197,"status":"error","error":"linter: untrusted repositories cannot mount host volumes","event":"tag","action":"create","link":"https://github.com/Damo-web/docs/compare/v1.0.1","timestamp":0,"message":":wrench: update config","before":"0000000000000000000000000000000000000000","after":"2969e2181514b78854334f1a462393ea371357d8","ref":"refs/tags/v1.0.1","source_repo":"","source":"","target":"","author_login":"snowball1990","author_name":"snowball1990","author_email":"snowballer0705@gmail.com","author_avatar":"https://avatars2.githubusercontent.com/u/44635219?v=4","sender":"snowball1990","started":0,"finished":1560705502,"created":1560705502,"updated":1560705502,"version":1}