Skip to content

Commit

Permalink
Merge pull request #781 from agrare/rake_task_update_database_types
Browse files Browse the repository at this point in the history
Add a rake task to auto-update database types
  • Loading branch information
Fryguy authored Jul 20, 2022
2 parents 5460654 + 58b3a45 commit 880c6f9
Show file tree
Hide file tree
Showing 5 changed files with 1,213 additions and 161 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/instance_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ jobs:
with:
ruby-version: 2.7
bundler-cache: true
- name: Run instance_types rake task
- name: Update ec2 instance types
run: bundle exec rake aws:extract:instance_types
- name: Update rds db instance types
run: bundle exec rake aws:extract:database_types
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: db/fixtures/aws_instance_types.yml
add-paths: |
db/fixtures/aws_instance_types.yml
db/fixtures/aws_database_types.yml
commit-message: Update AWS instance_types
branch: update_aws_instance_types
author: ManageIQ Bot <[email protected]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def cloud_database_flavors
persister.cloud_database_flavors.build(
:ems_ref => flavor[:name],
:name => flavor[:name],
:enabled => true,
:enabled => !flavor[:deprecated],
:cpus => flavor[:vcpu],
:memory => flavor[:memory]
)
Expand Down
Loading

0 comments on commit 880c6f9

Please sign in to comment.