send/circle.yml
2017-07-17 09:49:24 -07:00

34 lines
739 B
YAML

machine:
node:
version: 8
services:
- docker
- redis
dependencies:
pre:
- npm i -g get-firefox
- get-firefox --platform linux --extract --target /home/ubuntu/send
- npm i -g geckodriver
deployment:
latest:
branch: master
commands:
- npm run predocker
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker build -t mozilla/send:latest .
- docker push mozilla/send:latest
tags:
tag: /.*/
owner: mozilla
commands:
- npm run predocker
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker build -t mozilla/send:$CIRCLE_TAG .
- docker push mozilla/send:$CIRCLE_TAG
test:
override:
- npm run lint
- npm test