Add editor to wiki
This commit is contained in:
parent
8189a68fa9
commit
9186115066
35
.drone.yml
35
.drone.yml
|
@ -16,6 +16,36 @@ steps:
|
||||||
- go build ./...
|
- go build ./...
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
|
||||||
|
- name: restore-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
file: node-cache.tar
|
||||||
|
mount:
|
||||||
|
- ./editor/node_modules
|
||||||
|
|
||||||
|
- name: build-node
|
||||||
|
image: node
|
||||||
|
group: build
|
||||||
|
commands:
|
||||||
|
- cd editor
|
||||||
|
- npm install
|
||||||
|
- npm run docker
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
file: node-cache.tar
|
||||||
|
mount:
|
||||||
|
- ./editor/node_modules
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
@ -45,3 +75,8 @@ steps:
|
||||||
secrets:
|
secrets:
|
||||||
- source: result_webhook
|
- source: result_webhook
|
||||||
target: plugin_urls
|
target: plugin_urls
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /tmp
|
||||||
|
|
|
@ -17,5 +17,5 @@ repos:
|
||||||
- id: drone-lint
|
- id: drone-lint
|
||||||
name: Drone linting
|
name: Drone linting
|
||||||
language: system
|
language: system
|
||||||
entry: drone lint
|
entry: drone lint --trusted
|
||||||
files: .drone.yml
|
files: .drone.yml
|
||||||
|
|
|
@ -5,4 +5,5 @@ EXPOSE 80
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD ./wiki /app
|
ADD ./wiki /app
|
||||||
ADD ./templates /app/templates
|
ADD ./templates /app/templates
|
||||||
|
ADD ./editor/dist /app/public
|
||||||
ENTRYPOINT ["/app/wiki"]
|
ENTRYPOINT ["/app/wiki"]
|
||||||
|
|
|
@ -25,8 +25,9 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"watch": "webpack --watch",
|
"watch": "webpack --watch --hide-modules",
|
||||||
"start": "webpack-dev-server --open --hot",
|
"start": "webpack-dev-server --open --hot",
|
||||||
"build": "webpack"
|
"build": "webpack --progress --hide-modules",
|
||||||
|
"docker": "webpack --color=false --hide-modules"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user