mtfosbot_web/.drone.yml
2018-08-24 20:36:26 +08:00

18 lines
379 B
YAML

pipeline:
build:
image: node:8
commands:
- npm install
- BASE_URL=/web npm run build
when:
branch: release
docker:
image: plugins/docker
registry: docker.mtfos.xyz
repo: docker.mtfos.xyz/mtfos/bot_web
build_args:
- PREFIX=/web
dockerfile: Dockerfile
tags: [latest, "${DRONE_COMMIT}"]
when:
branch: release