storage-upload/.circleci/config.yml

38 lines
895 B
YAML
Raw Normal View History

2017-12-09 21:51:18 +00:00
version: 2
jobs:
build_deploy:
2017-12-09 21:51:18 +00:00
docker:
- image: circleci/node:latest
2017-12-09 21:51:18 +00:00
environment:
- di: "nfpis/storage-upload"
- dtag: "latest"
working_directory: ~/storage-upload
steps:
- checkout
- run:
name: Install dependencies
2017-12-09 21:51:18 +00:00
command: |
npm install
npm list --all
2017-12-09 22:00:37 +00:00
- run:
name: Run tests
command: |
npm run test:linux
- setup_remote_docker
- run:
name: Build docker image
command: |
docker build -t ${di}:build_${CIRCLE_BUILD_NUM} -t ${di}:${CIRCLE_SHA1} -t ${di}:${dtag} .
- deploy:
name: Push to docker
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push ${di}
2017-12-09 21:51:18 +00:00
workflows:
version: 2
build_deploy:
jobs:
- build_deploy:
2017-12-09 21:51:18 +00:00
context: org-global