Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ulysses-front/.drone.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
85 lines (79 sloc)
2.03 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .drone.yml | |
# NOTE NOTE NOTE | |
# all changes to this file must be accompanied by | |
# a .drone.sec update, or else the build will FAIL! | |
# see http://readme.drone.io/usage/secrets/ | |
# | |
# i set up two shell environment variables, DRONE_TOKEN and DRONE_SERVER. | |
# then added an alias: | |
# alias dronesec="drone -t \$(echo \$DRONE_TOKEN) -s \$(echo \$DRONE_SERVER) secure --in secrets.yml --repo " | |
# which can be used like this (in this directory): | |
# $ dronesec core/ulysses-front | |
clone: | |
skip_verify: true | |
build: | |
setup: | |
image: busybox | |
commands: | |
- . scripts/clean.sh | |
- mkdir -p resources/public/css/compiled | |
npm-deps: | |
image: mhart/alpine-node:4 | |
commands: | |
- npm install | |
sass: | |
image: jbergknoff/sass | |
commands: | |
- sass --style compressed src/sass/app.scss resources/public/css/compiled/app.css | |
cljs: | |
image: andrewsuzuki/lein | |
commands: | |
- . scripts/build-cljs.sh | |
# tag image with "latest" or "develop", and build number | |
publish: | |
docker: | |
file: Dockerfile | |
username: $$DOCKER_USER | |
password: $$DOCKER_PASS | |
email: $$DOCKER_EMAIL | |
repo: uconncore/ulysses-front | |
tag: latest | |
when: | |
branch: master | |
docker: | |
file: Dockerfile | |
username: $$DOCKER_USER | |
password: $$DOCKER_PASS | |
email: $$DOCKER_EMAIL | |
repo: uconncore/ulysses-front | |
tag: develop | |
when: | |
branch: develop | |
# deploy new image to rancher (using ulysses stack) | |
deploy: | |
rancher: | |
url: $$RANCHER_URL | |
access_key: $$RANCHER_ACCESS_KEY | |
secret_key: $$RANCHER_SECRET_KEY | |
service: ulysses/front-prod | |
confirm: false | |
timeout: 100 | |
docker_image: uconncore/ulysses-front:latest | |
when: | |
branch: master | |
rancher: | |
url: $$RANCHER_URL | |
access_key: $$RANCHER_ACCESS_KEY | |
secret_key: $$RANCHER_SECRET_KEY | |
service: ulysses/front-staging | |
confirm: true | |
timeout: 100 | |
docker_image: uconncore/ulysses-front:develop | |
when: | |
branch: develop | |
# notify slack channel | |
notify: | |
slack: | |
webhook_url: $$SLACK_WEBHOOK_URL | |
channel: ulysses | |
username: drone ci |