pipeline: build: image: node:8 command: - 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_arg: - PREFIX=/web dockerfile: Dockerfile tags: [latest, "${DRONE_COMMIT}"] when: branch: release