31 lines
649 B
YAML
31 lines
649 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/node:latest
|
|
environment:
|
|
- di: "nfpis/storage-upload"
|
|
- dtag: "latest"
|
|
working_directory: ~/storage-upload
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Install dependencies
|
|
command: |
|
|
npm install
|
|
- run:
|
|
name: Run tests
|
|
command: |
|
|
npm test
|
|
# - deploy:
|
|
# name: Push to docker
|
|
# command: |
|
|
# docker login -u $DOCKER_USER -p $DOCKER_PASS
|
|
# docker push ${di}
|
|
|
|
workflows:
|
|
version: 2
|
|
build_deploy:
|
|
jobs:
|
|
- build:
|
|
context: org-global
|