-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_large.yml
34 lines (31 loc) · 1.2 KB
/
config_large.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
version: 2.1
parameters:
run_workflow_setup:
default: true
type: boolean
# 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/continuation@0.1.2
# our defined job, and its steps
jobs:
setup:
executor: continuation/default
steps:
- checkout # checkout code
- run: # run a command
name: Generate config
command: |
curl "https://raw.githubusercontent.com/GetPageSpeed/buildstrap/main/generated_config.yml" -o .circleci/generated_config.yml
sed -i 's@resource_class: small@resource_class: large@g' .circleci/generated_config.yml
sed -i 's@default: "small"@default: "large"@g' .circleci/generated_config.yml
sed -i 's@resource_class: arm.medium@resource_class: arm.large@g' .circleci/generated_config.yml
- 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:
setup:
when: << pipeline.parameters.run_workflow_setup >>
jobs:
- setup