Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
Updated workflow rules.
  • Loading branch information
nhkhai committed Apr 30, 2024
1 parent f343c15 commit 8d214d5
Showing 1 changed file with 42 additions and 12 deletions.
54 changes: 42 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,23 @@ workflows:
# # ignore:
# # - release

- build_and_test
- build_and_test:
filters:
branches:
ignore:
- release

# The Snyk security scan job.
- scan:
requires:
# - build
- build_and_test
# filters:
# branches:
# only:
# - main
# ignore:
# - release
filters:
branches:
# only:
# - main
ignore:
- release

- publish:
# Ensure that the dependency job(s) are able to run (watch out for branch filtering affecting this), else publish and deploy (depends on publish) will not run at all.
Expand All @@ -217,21 +221,47 @@ workflows:
# tags:
# only: /^v[0-9]+\.[0-9]+\.[0-9]+$/ # Ensure this job runs only for semantically versioned tags. This regex pattern matches semantic versioning tags (e.g., v1.0.0, v2.1.3).
branches:
only:
# only:
# - release
ignore:
- develop
- release

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

# The Snyk security scan job.
- scan:
requires:
- publish
# - build
- build_and_test
# filters:
# branches:
# only:
# - main
# ignore:
# - release
branches:
only:
- release

- publish:
# Ensure that the dependency job(s) are able to run (watch out for branch filtering affecting this), else publish and deploy (depends on publish) will not run at all.
requires:
# - test
- build_and_test
- scan
filters:
# tags:
# only: /^v[0-9]+\.[0-9]+\.[0-9]+$/ # Ensure this job runs only for semantically versioned tags. This regex pattern matches semantic versioning tags (e.g., v1.0.0, v2.1.3).
branches:
only:
- release

cicd_flow:
jobs:
- deploy:
requires:
- publish
Expand Down

0 comments on commit 8d214d5

Please sign in to comment.