forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.yml
executable file
·86 lines (79 loc) · 1.97 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: 2.1
# To help debugging circleci config changes you may want
# to run the generate_config.sh script locally and
# then copy the contents from generated_config.yml into the config.yml file.
# this allows you to use CircleCI's dynamic configuration feature
setup: true
# the continuation orb is required in order to use dynamic configuration
orbs:
continuation: circleci/[email protected]
# parameters from github actions
parameters:
build_and_test_all:
type: boolean
default: false
build_and_test_backend:
type: boolean
default: false
build_and_test_frontend:
type: boolean
default: false
deploy_infrastructure:
type: boolean
default: false
develop_branch_deploy:
type: boolean
default: false
run_dev_deployment:
type: boolean
default: false
run_nightly_owasp_scan:
type: boolean
default: false
run_owasp_scan:
type: boolean
default: false
target_env:
type: string
default: ''
triggered:
type: boolean
default: false
util_make_erd:
type: boolean
default: false
jobs:
setup:
executor: continuation/default
steps:
- checkout # checkout code
- run: # run a command
name: Generate config
command: |
cd .circleci
chmod +x generate_config.sh
./generate_config.sh
- continuation/continue:
configuration_path: .circleci/generated_config.yml # use newly generated config to continue
# our single workflow, that triggers the setup job defined above
workflows:
github-triggered-setup:
when: << pipeline.parameters.triggered >>
jobs:
- setup:
filters:
branches:
ignore:
- main
- master
- /^release.*/
circle-ci-setup:
jobs:
- setup:
filters:
branches:
only:
- develop
- main
- master
- /^release.*/