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