2017-12-09 21:51:18 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2021-07-03 13:56:53 +00:00
|
|
|
- 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:
|
2021-07-03 13:56:53 +00:00
|
|
|
name: Install dependencies
|
2017-12-09 21:51:18 +00:00
|
|
|
command: |
|
2021-07-03 13:56:53 +00:00
|
|
|
npm install
|
2021-10-11 01:36:36 +00:00
|
|
|
npm list --all
|
2017-12-09 22:00:37 +00:00
|
|
|
- run:
|
|
|
|
name: Run tests
|
|
|
|
command: |
|
2021-10-11 01:24:51 +00:00
|
|
|
npm run test:linux
|
2021-07-03 13:56:53 +00:00
|
|
|
# - 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:
|
|
|
|
context: org-global
|