Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
Added spacing.
  • Loading branch information
nhkhai committed Apr 30, 2024
1 parent 1daab5a commit 593fa31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- image: cimg/openjdk:21.0.2
environment:
PGHOST: 127.0.0.1

- image: cimg/postgres:16.2
environment:
POSTGRES_PASSWORD: password # Must not be empty or undefined. It is trust authentication locally (inside the same container) so the password is not actually used.
Expand All @@ -26,8 +27,10 @@ jobs:
path: target/surefire-reports
- store_artifacts: # Store the uber jar as an artifact.
path: target/the-review-room-0.0.1-SNAPSHOT.jar

publish: # Also known as the build-and-push.
executor: docker/docker # Define the execution environment in which the steps of a job will run.

steps:
- checkout
- setup_remote_docker
Expand All @@ -38,6 +41,7 @@ jobs:
- docker/push: # Pushes the image to the specified account in the environment variables.
image: nhkhai/the-review-room
tag: latest # Consider setting this dynamically based on the tag using env vars or CircleCI parameters.

scan:
docker:
- image: cimg/base:current
Expand All @@ -54,9 +58,11 @@ jobs:
docker-image-name: $IMAGE_NAME # The image name, if scanning a container image.
fail-on-issues: false # This specifies if builds should be failed or continued based on issues found by Snyk. If false, the failure is hidden and marked as a pass.
severity-threshold: high # Only report vulnerabilities of provided level or higher (low/medium/high/critical). If param is not present, the default value is low.

deploy:
docker:
- image: cimg/base:current

steps:
- run:
name: Render Deploy Hook
Expand All @@ -71,25 +77,31 @@ workflows:
branches:
ignore:
- release

- publish:
requires:
- build_and_test

- scan:
requires:
- publish

cicd_flow:
jobs:
- build_and_test:
filters:
branches:
only:
- release

- publish:
requires:
- build_and_test

- scan:
requires:
- publish

- deploy:
requires:
- publish

0 comments on commit 593fa31

Please sign in to comment.