Skip to content
70 changes: 70 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: 2.1
orbs:
snyk: snyk/[email protected]

workflows: #creating a workflow to define the context - collection of different jobs
test-env-vars: #setting up a job to define the context which this project will use
jobs:
- build-test-monitor-app: #building the relevant context
context: Snyk # has an env var called Snyk-Token
- build-test-monitor-docker:
context: Snyk


jobs: # a collection of steps
build-test-monitor-app: # runs not using Workflows must have a `build` job as entry point #directory where steps will run
working_directory: ~/goof
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- run:
name: echo "install and build npm project"
command: 'sudo npm install -q'
- run:
name: echo "build project"
command: 'npm run build'
#- run:
# name: echo "build Docker image"
# command: 'docker build -t my-new-container-goof-image .'
- snyk/scan:
fail-on-issues: false
monitor-on-build: true
token-variable: SNYKTOKEN
organization: panda-not-omar
project: circleCi-goof
severity-threshold: high


build-test-monitor-docker: # runs not using Workflows must have a `build` job as entry point #directory where steps will run
#working_directory: ~/goof
docker:
- image: circleci/buildpack-deps:stretch
environment:
IMAGE_NAME: akanchhaS/goof
steps:
- checkout
- setup_remote_docker
- run:
name: echo "Build Docker image"
command: 'docker build -t my-new-container-circleci-goof-image .'
- snyk/scan:
fail-on-issues: false
monitor-on-build: true
token-variable: SNYKTOKEN
organization: panda-not-omar
project: circleCi-goof-container
severity-threshold: low
target-file: Dockerfile
docker-image-name: my-new-container-circleci-goof-image

#workflows:
#node-tests:
#jobs:
# - node/test
#- snyk/scan:
# fail-on-issues: false
# monitor-on-build: true
# token-variable: SNYKTOKEN
# organization: panda-not-omar
# project: circleCi-dotnet-goof
41 changes: 4 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ejs-locals": "1.0.2",
"errorhandler": "1.2.0",
"express": "4.12.4",
"express-fileupload": "0.0.5",
"express-fileupload": "1.2.1",
"file-type": "^8.1.0",
"humanize-ms": "1.0.1",
"jquery": "^2.2.4",
Expand Down