filo_caspar/.circleci/config.yml

29 lines
805 B
YAML
Raw Normal View History

2017-11-05 11:52:36 +00:00
version: 2
jobs:
build:
docker:
2017-12-03 11:34:43 +00:00
- image: circleci/node:latest
2017-11-05 11:52:36 +00:00
working_directory: ~/caspar-sup
steps:
- checkout
- setup_remote_docker
- run:
name: Build docker image
command: docker build -t nfpis/caspar-sup:build_${CIRCLE_BUILD_NUM} -t nfpis/caspar-sup:${CIRCLE_SHA1} -t nfpis/caspar-sup:latest .
- run:
2017-12-03 11:34:43 +00:00
name: Run test and lint
command: |
docker run nfpis/recording_control npm run lint
docker run nfpis/recording_control npm run test
- deploy:
2017-11-05 11:52:36 +00:00
name: Push to docker
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push nfpis/caspar-sup
workflows:
version: 2
build_deploy:
jobs:
- build:
context: org-global