代码拉取完成,页面将自动刷新
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- /drone/.meteor/
- ./node_modules
- ./.meteor/local
volumes:
- /tmp/cache/Rocket.Chat:/cache
build:
image: ubuntu:16.04
environment:
- METEOR_ALLOW_SUPERUSER=true
commands:
- apt update && apt install curl git python g++ build-essential bzip2 -y
- export HOME=/drone
- export PATH="/drone/.meteor:$PATH"
- if [ ! -e "/drone/.meteor/meteor" ]; then export HOME=/drone; curl https://install.meteor.com | sed s/--progress-bar/-sL/g | /bin/sh; fi
- which meteor
- meteor npm install
- set +e
- meteor add rocketchat:lib
- set -e
- mkdir /drone/build
- meteor build --allow-superuser --server-only --directory /drone/build
- cp .docker/Dockerfile.local /drone/build/Dockerfile
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- /drone/.meteor/
- ./node_modules
- ./.meteor/local
volumes:
- /tmp/cache/Rocket.Chat:/cache
docker:
image: plugins/docker
repo: rocketchat/rocket.chat
dockerfile: /drone/build/Dockerfile
storage_driver: overlay
context: /drone/build
secrets: [ docker_username, docker_password ]
tag: designpreview
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。