Skip to content
Permalink
8c99a3bfd4
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
82 lines (76 sloc) 1.97 KB
# .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
notify:
slack:
webhook_url: $$SLACK_WEBHOOK_URL
channel: ulysses
username: drone
# 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-staging
confirm: true
docker_image: uconncore/ulysses-front:develop
when:
branch: develop
rancher:
url: $$RANCHER_URL
access_key: $$RANCHER_ACCESS_KEY
secret_key: $$RANCHER_SECRET_KEY
service: ulysses/front-prod
confirm: false
docker_image: uconncore/ulysses-front:latest
when:
branch: master