Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
ee06e2c
Added an ECSTasks module to handle standalone fargate tasks which are…
sstoops Apr 24, 2023
cd1cb3a
Consolidating the GitHub workflows down to only what we need to perfo…
sstoops Mar 28, 2023
067c6ba
Switching CI action over to `oreilly-main` branch
sstoops Mar 28, 2023
548938f
CL-540 | Lower concurrent resource list requests temporarily (for clo…
danarbaugh Apr 13, 2023
37a2789
CL-522 | Add `SignerSigningJob` module to revoke signing jobs
gsoria Apr 26, 2023
51894ce
Removing deprecated String method. Eliminating a for-loop in the clus…
sstoops Apr 27, 2023
1d34a88
Merge pull request #2 from oreillymedia/cl-545-ecs-tasks-module
sstoops Apr 27, 2023
e8a0a93
CL-522 | update revoking reason
gsoria Apr 28, 2023
ac274c9
CL-522 | filter already revoked jobs in the `Filter` function
gsoria Apr 28, 2023
2fae9cc
CL-522 | include more job properties available for filters
gsoria Apr 28, 2023
0b661ad
Merge pull request #3 from oreillymedia/CL-522
gsoria May 1, 2023
3ec2871
return non zero code when there is a throttline exception
corybekk May 30, 2023
c8b74f2
add MaxRetry config for cloudControlApi.
corybekk May 31, 2023
92873d9
return non zero code for throttling exceptions even if no new resourc…
corybekk May 31, 2023
5ee09bd
change ScannerParallelQueries back to 2
corybekk Jun 1, 2023
2ebe1e6
change ScannerParallelQueries back to the default 16
corybekk Jun 1, 2023
223168d
return non zero code when there is a throttline exception
corybekk May 30, 2023
412e4d0
add MaxRetry config for cloudControlApi.
corybekk May 31, 2023
0315694
return non zero code for throttling exceptions even if no new resourc…
corybekk May 31, 2023
d3f357a
change ScannerParallelQueries back to the default 16
corybekk Jun 1, 2023
1c22311
Merge branch 'CL-550' of github.com:oreillymedia/aws-nuke into CL-550
corybekk Jun 1, 2023
cfa9c9e
Merge pull request #4 from oreillymedia/CL-550
corybekk Jun 2, 2023
f3dbc85
Merge branch 'main' into oreilly-main
danarbaugh Jul 10, 2023
3b4f84f
Add Polly Lexicon support (#5)
danarbaugh Jul 11, 2023
67be0c0
Adding Elasticache User and UserGroup Support
swhite-oreilly Jul 12, 2023
80c7bae
Create opensearchservice-packages.go
swhite-oreilly Jul 12, 2023
b5c792e
Create opensearchservice-packages.go
swhite-oreilly Jul 12, 2023
449f471
Delete opensearchservice-packages.go
swhite-oreilly Jul 12, 2023
55571a7
Update opensearchservice-packages.go
swhite-oreilly Jul 13, 2023
84fbd14
Adding opensearch vpcendpoints functionality.
swhite-oreilly Jul 13, 2023
378ccab
Update opensearchservice-vpcendpoints.go
swhite-oreilly Jul 13, 2023
abeee6c
Merge pull request #6 from oreillymedia/Add-Elasticache-User-and-Grou…
swhite-oreilly Jul 14, 2023
ade341a
Update opensearchservice-packages.go
swhite-oreilly Jul 14, 2023
41e22d2
Update opensearchservice-vpcendpoints.go
swhite-oreilly Jul 14, 2023
cf3c7e4
Merge pull request #7 from oreillymedia/Add-Opensearch-Packages-VPCEn…
swhite-oreilly Jul 14, 2023
6542114
Bump github.com/aws/aws-sdk-go from 1.44.295 to 1.44.307 (#1052)
dependabot[bot] Jul 25, 2023
6ebac13
Bump github.com/aws/aws-sdk-go from 1.44.307 to 1.44.313 (#1061)
dependabot[bot] Aug 2, 2023
529f885
Support for TGW Attachment Peering resources (#996)
alemuro Aug 2, 2023
06a0dfe
Enable aws-cn by setting the default partition correctly (#1042)
ganhuang Aug 2, 2023
93f09c3
kms-keys: Skip keys already in pending replica deletion state (#1046)
jbmchuck Aug 2, 2023
8ecf7cc
feat: Adding tag properties to EC2DefaultSecurityGroupRule resource (…
gdbranco Aug 2, 2023
34899fb
Fix date format for ASG creationDate (#1014)
vboulineau Aug 2, 2023
47fc6c7
Add formatting check to GitHub Actions (#1063)
der-eismann Aug 2, 2023
2bef99a
appconfig: add support for five resources (#1055)
tbarrella Aug 2, 2023
90ad6c4
ecs: list all services, not just 10 (#1056)
tbarrella Aug 2, 2023
d01537a
Adding CloudFrontOriginRequestPolicy resources. (#1051)
MikeSchouw Aug 3, 2023
4d7b18b
Bump github.com/aws/aws-sdk-go from 1.44.313 to 1.44.318 (#1066)
dependabot[bot] Aug 8, 2023
42a68a3
Group Golang dependabot updates (#1070)
der-eismann Aug 15, 2023
df499d5
Filter main route tables (#953)
leighpascoe Aug 15, 2023
955a8f4
Bump the golang group with 1 update (#1071)
dependabot[bot] Aug 15, 2023
96d3e60
Update readme for v2.24.0 release (#1072)
github-actions[bot] Aug 15, 2023
b873fb3
app config: fix max results 100 -> 50 (#1075)
tbarrella Aug 16, 2023
f4030b9
Update readme for v2.24.1 release (#1076)
github-actions[bot] Aug 16, 2023
b044caf
Updating detection filters.
swhite-oreilly Aug 17, 2023
3472f9d
Bump the golang group with 2 updates (#1080)
dependabot[bot] Aug 22, 2023
db11768
Adding filters for key-phrases and dominant-language
swhite-oreilly Aug 22, 2023
7b51b7f
Adding pii entitites and sentiment detection job support.
swhite-oreilly Aug 22, 2023
eeb2e17
Adding events detection job support.
swhite-oreilly Aug 22, 2023
88607f3
Fix: Don't delete predefined deployment strategies (#1081)
der-eismann Aug 23, 2023
468e5e3
Stop building ARM containers for PRs (#1082)
der-eismann Aug 23, 2023
158ca36
Defuse unnecessary errors for unavailable services (#1083)
der-eismann Aug 23, 2023
ef87e80
Build with Go 1.21 (#1084)
der-eismann Aug 23, 2023
a3fa4aa
Update readme for v2.24.2 release (#1086)
github-actions[bot] Aug 23, 2023
a552489
Add EC2InstanceConnectEndpoint resource (#1087)
der-eismann Aug 23, 2023
9874f48
Add elasticache user and group support (#1044)
swhite-oreilly Aug 24, 2023
f8fc2e5
Add support for CloudFront public keys and CloudFront key groups (#87…
npellegrin Aug 24, 2023
f1aff70
feat: MemoryDBACL resource support (#1079)
JTaylor-myenergi Aug 24, 2023
e641116
Stopped Executions before deleting step functions state machines (#1053)
suleman-sohail Aug 24, 2023
150eb13
Add RedshiftScheduledAction resource (#1047)
MikeSchouw Aug 24, 2023
dd94ae0
Merge remote-tracking branch 'upstream/main' into Update-comprehend-d…
swhite-oreilly Aug 24, 2023
b598367
Merge branch 'oreilly-main' into Update-comprehend-detection-filters
swhite-oreilly Aug 24, 2023
ea07a10
Merge pull request #10 from oreillymedia/Update-comprehend-detection-…
swhite-oreilly Aug 24, 2023
23ee222
Updating detection filters.
swhite-oreilly Aug 17, 2023
5bcf0b6
Adding filters for key-phrases and dominant-language
swhite-oreilly Aug 22, 2023
33fa1cf
Adding pii entitites and sentiment detection job support.
swhite-oreilly Aug 22, 2023
f30fbd6
Adding events detection job support.
swhite-oreilly Aug 22, 2023
9f72e61
Merge pull request #12 from oreillymedia/Update-comprehend-detection-…
swhite-oreilly Aug 24, 2023
5342982
Add opensearch packages vpc endpoint support (#1078)
swhite-oreilly Aug 25, 2023
7771ef6
Adding tag support for FirehoseDeliveryStreams (#1088)
MikeSchouw Aug 25, 2023
6179e59
Adding support for AppRunner services (#1060)
MikeSchouw Aug 25, 2023
c0b549d
Add ownerID as fields to a variety of ec2/vpc resources (#964)
samjarrett Aug 25, 2023
ab396a4
fix(IAMInstanceProfileRole): Fix instance profile role glob filtering…
jrarmstro Aug 25, 2023
5723826
Filter open-access MemoryDB ACL (#1089)
der-eismann Aug 25, 2023
0dd135f
(features)The delete function for cloudwatch rum is added (#952)
wei-zhong90 Aug 29, 2023
36a47fe
Update comprehend detection filters (#1090)
swhite-oreilly Aug 29, 2023
7c612f4
Disabling Remediation Configuration from configservice rules before a…
Muhammad-Ahmad-Rai Aug 29, 2023
bffd366
Route53ResourceRecordSet: add tags of the parent Hosted Zone (#978)
andreadecorte Aug 29, 2023
ac386b8
Add dates to IAM users, access keys & Elasticache Replication Groups …
der-eismann Aug 29, 2023
5560ce3
Fix crash when WAF/WAFRegional GetRule gives error (#894)
apgrucza Aug 29, 2023
2bd22d5
Improve listing of cloudcontrol resources (#1096)
der-eismann Aug 31, 2023
b161c43
Merge branch 'main' into oreilly-main
danarbaugh Sep 1, 2023
a341126
Update readme for v2.25.0 release (#1100)
github-actions[bot] Sep 4, 2023
5fca9fc
Remove docker_build job again (#14)
danarbaugh Sep 5, 2023
08cd574
Add Transcribe support (#13)
danarbaugh Sep 6, 2023
91e2670
Merge branch 'main' into oreilly-main
danarbaugh Sep 6, 2023
90a9c2a
Bump the golang group with 1 update (#1105)
dependabot[bot] Sep 19, 2023
724a064
Upgrade checkout action in workflows to v4 (#1106)
der-eismann Sep 21, 2023
54c1ff9
Add support for codebuild builds
gsoria Oct 3, 2023
c703c43
Bump the golang group with 2 updates (#1120)
dependabot[bot] Oct 11, 2023
c6b2a70
Bump the golang group with 1 update (#1122)
dependabot[bot] Oct 17, 2023
4d35ec1
Add filter for opensearch default packages (#1130)
swhite-oreilly Oct 23, 2023
2db209d
Merge branch 'main' into oreilly-main
swhite-oreilly Oct 24, 2023
c2ae6d7
Update release.yaml
swhite-oreilly Oct 24, 2023
b185389
Add CodeGuru Reviewer RepositoryAssociation support
gsoria Oct 25, 2023
e22e3d9
Fixing a null pointer exception
sinisa229 Oct 26, 2023
4e8c0c5
Bump the golang group with 1 update (#1133)
dependabot[bot] Oct 26, 2023
38610d6
Merge remote-tracking branch 'sinisa229/patch-1' into patch-route53
danarbaugh Oct 27, 2023
67741e9
Patch Route53ResolverRule early (#19)
danarbaugh Oct 27, 2023
1ded821
cl-724 Adding support for codedeploy deployment configs
swhite-oreilly Oct 31, 2023
888f8d2
CL-732 | add cloud control mapping for `RepositoryAssociation`
gsoria Oct 31, 2023
eed354e
Merge pull request #18 from oreillymedia/CL-732
gsoria Nov 1, 2023
31d479e
Update resources/codedeploy-deployment-configs.go
swhite-oreilly Nov 1, 2023
0bc09f2
Adding custom action type support.
swhite-oreilly Nov 1, 2023
96f7e14
Add support for codedeploy deployment groups, adding map for custom a…
swhite-oreilly Nov 1, 2023
ec3fa04
Update codepipeline-custom-action-types.go
swhite-oreilly Nov 1, 2023
f34717f
Adding webhook support.
swhite-oreilly Nov 2, 2023
04688f8
Merge pull request #20 from oreillymedia/cl-724-add-codedeploy-deploy…
swhite-oreilly Nov 3, 2023
5757850
Bump the golang group with 5 updates (#1141)
dependabot[bot] Nov 7, 2023
2d96dc7
Modify the backup vault access policies that contain restrictive clau…
gsoria Nov 10, 2023
b41b6e5
Bump the golang group with 1 update (#1149)
dependabot[bot] Nov 14, 2023
8294c3a
Merge pull request #21 from oreillymedia/CL-731
gsoria Nov 14, 2023
87236b0
Bump the golang group with 3 updates (#1182)
dependabot[bot] Jan 25, 2024
407950a
Bump the golang group with 2 updates (#1183)
dependabot[bot] Jan 30, 2024
ce034f8
Bump the golang group with 1 update (#1188)
dependabot[bot] Feb 15, 2024
93792d4
Bump the golang group with 1 update (#1191)
dependabot[bot] Feb 20, 2024
d6b1374
Add release note config (#1192)
der-eismann Feb 20, 2024
566bb86
Add support for Redshift Serverless namespaces, snapshots and workgro…
mdirkse Feb 23, 2024
9181198
feat: Adding Cloudfront response headers policies (#1140)
Feb 26, 2024
defb30f
Bump the golang group with 1 update (#1195)
dependabot[bot] Feb 27, 2024
c3ae179
Add ELB Listener Rules object (#1193)
vboulineau Feb 29, 2024
aada788
Adding support for Glue blueprints, ml transforms, sessions, and work…
swhite-oreilly Mar 15, 2024
3feba8e
Bump the golang group with 2 updates (#1201)
dependabot[bot] Mar 19, 2024
89dc604
Merge pull request #22 from oreillymedia/cl-807-aws-glue-support
swhite-oreilly Mar 22, 2024
fd49a6d
CL-858 Adding Athena support for data catalogs and prepared statements
swhite-oreilly Mar 26, 2024
89f3f5f
Merge pull request #23 from oreillymedia/cl-858-aws-athena-support
swhite-oreilly Mar 29, 2024
dabb9ac
Bump the golang group with 1 update (#1205)
dependabot[bot] Apr 2, 2024
ec40ba7
Add manual trigger to workflow (#1208)
der-eismann Apr 5, 2024
244c173
CL-508 Adding support for CloudWatch Insight Rules
swhite-oreilly Apr 24, 2024
8dd7d66
Adding anomaly detection support.
swhite-oreilly Apr 26, 2024
83454e4
Bump the golang group across 1 directory with 2 updates (#1217)
dependabot[bot] Apr 30, 2024
a3a9494
Merge pull request #24 from oreillymedia/CL-508-add-cloudwatch-app-mo…
swhite-oreilly May 2, 2024
decba48
Bump github.com/aws/aws-sdk-go from 1.51.31 to 1.52.3 in the golang g…
dependabot[bot] May 7, 2024
97c0044
CL-880 Elastic Transcoder Preset support.
swhite-oreilly May 9, 2024
2d84fb6
Merge pull request #25 from oreillymedia/CL-880-enable-aws-services
swhite-oreilly May 14, 2024
e527274
Add module to handle Glue security configurations
gsoria May 27, 2024
7ab3cd2
Bump the golang group across 1 directory with 2 updates (#1227)
dependabot[bot] May 28, 2024
9517b36
Reformat the file
gsoria May 29, 2024
fca7b90
Merge pull request #26 from oreillymedia/CL-869-glue-security-config
gsoria May 29, 2024
278d2ff
Merge branch 'main' into oreilly-main
gsoria May 29, 2024
4b8ea2e
Bump github.com/aws/aws-sdk-go from 1.53.10 to 1.53.15 in the golang …
dependabot[bot] Jun 5, 2024
18db9cc
Bump the golang group across 1 directory with 2 updates (#1238)
dependabot[bot] Jun 25, 2024
e30c224
CL-627 | add module for dynamodb backups
gsoria Jul 6, 2024
c334b85
Merge pull request #28 from oreillymedia/CL-627-dynamodb-backup
gsoria Jul 9, 2024
c24e393
Bump github.com/aws/aws-sdk-go from 1.54.7 to 1.54.19 in the golang g…
dependabot[bot] Jul 16, 2024
bc5b576
Add .editorconfig
terraform-cluster-config[bot] Jul 17, 2024
c1622c9
add KinesisSignalingChannels module
corybekk Aug 7, 2024
b1363ac
Merge pull request #30 from oreillymedia/CL-532-kinesis-signaling-cha…
corybekk Aug 8, 2024
4b66bbf
Merge branch 'main' into CL-937-bedrock
corybekk Sep 11, 2024
0856ebf
added bedrock agent alias module
corybekk Sep 11, 2024
1a5034e
added bedrock flow alias module
corybekk Sep 11, 2024
5ea0b67
added filters for aws managed aliases
corybekk Sep 16, 2024
1e5142c
remove agent alias filter
corybekk Sep 16, 2024
2e67160
added alias properties
corybekk Sep 16, 2024
336fed8
Merge pull request #33 from oreillymedia/CL-937-bedrock
corybekk Sep 17, 2024
ba25a7d
Merge remote-tracking branch 'old-fork/oreilly-main' into oreilly-mai…
corybekk Nov 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 132 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# Distributed via https://github.com/rebuy-de/terraform-cluster-config
# Modify only there, changes in project repos will be overwritten

root = true

[openapi-spec.yaml]
ij_formatter_enabled = false

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 4
trim_trailing_whitespace = true
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides =
ij_wrap_on_typing = false

[{*.htm,*.html,*.sht,*.shtm,*.shtml}]
ij_html_attribute_wrap = off
ij_html_do_not_indent_children_of_tags =
ij_html_keep_blank_lines = 1
ij_html_text_wrap = off

[{*.cjs,*.js}]
ij_javascript_do_while_brace_force = always
ij_javascript_for_brace_force = always
ij_javascript_if_brace_force = always
ij_javascript_keep_blank_lines_in_code = 1
ij_javascript_use_double_quotes = false
ij_javascript_while_brace_force = always

[{*.ats,*.cts,*.mts,*.ts}]
ij_typescript_do_while_brace_force = always
ij_typescript_for_brace_force = always
ij_typescript_if_brace_force = always
ij_typescript_import_prefer_absolute_path = true
ij_typescript_keep_blank_lines_in_code = 1
ij_typescript_space_before_function_left_parenth = false
ij_typescript_use_double_quotes = false
ij_typescript_while_brace_force = always

[*.coffee]
indent_size = 2

[*.java]
ij_continuation_indent_size = 4
ij_java_blank_lines_around_field = 1
ij_java_blank_lines_around_initializer = 0
ij_java_class_brace_style = next_line
ij_java_class_count_to_use_import_on_demand = 99
ij_java_do_while_brace_force = always
ij_java_doc_add_blank_line_after_param_comments = true
ij_java_doc_add_blank_line_after_return = true
ij_java_for_brace_force = always
ij_java_if_brace_force = always
ij_java_keep_blank_lines_before_right_brace = 0
ij_java_keep_blank_lines_in_code = 1
ij_java_keep_blank_lines_in_declarations = 0
ij_java_keep_simple_classes_in_one_line = true
ij_java_keep_simple_lambdas_in_one_line = true
ij_java_method_brace_style = next_line
ij_java_names_count_to_use_import_on_demand = 99
ij_java_new_line_after_lparen_in_record_header = true
ij_java_packages_to_use_import_on_demand =
ij_java_record_components_wrap = on_every_item
ij_java_rparen_on_new_line_in_record_header = true
ij_java_while_brace_force = always

[{*.kt,*.kts}]
ij_continuation_indent_size = 4
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
ij_kotlin_packages_to_use_import_on_demand =

[{*.ctp,*.hphp,*.inc,*.module,*.php,*.php4,*.php5,*.phtml}]
ij_php_align_multiline_parameters = false
ij_php_blank_lines_around_field = 1
ij_php_blank_lines_before_return_statement = 1
ij_php_comma_after_last_array_element = true
ij_php_force_short_declaration_array_style = true
ij_php_keep_blank_lines_before_right_brace = 0
ij_php_keep_blank_lines_in_code = 1
ij_php_keep_blank_lines_in_declarations = 0
ij_php_keep_rparen_and_lbrace_on_one_line = true
ij_php_lower_case_boolean_const = true
ij_php_lower_case_null_const = true
ij_php_method_parameters_new_line_after_left_paren = true
ij_php_method_parameters_right_paren_on_new_line = true
ij_php_phpdoc_blank_line_before_tags = true
ij_php_phpdoc_blank_lines_around_parameters = true
ij_php_space_after_type_cast = true
ij_php_space_before_short_closure_left_parenthesis = true

[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.pom,*.rng,*.tld,*.wadl,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul,phpunit.xml.dist}]
ij_xml_space_inside_empty_tag = true

[{*.tf,*.tfvars,*.hcl}]
tab_width = 2
ij_continuation_indent_size = 4

[*.less]
tab_width = 2
ij_continuation_indent_size = 2

[*.sass]
tab_width = 2
ij_continuation_indent_size = 2

[*.scala]
ij_scala_do_while_brace_force = always
ij_scala_for_brace_force = always
ij_scala_if_brace_force = always
ij_scala_keep_blank_lines_before_right_brace = 0
ij_scala_keep_blank_lines_in_code = 0
ij_scala_keep_blank_lines_in_declarations = 0
ij_scala_multiline_string_closing_quotes_on_new_line = false

[*.scss]
ij_continuation_indent_size = 4

[{*.yaml,*.yml}]
ij_yaml_spaces_within_braces = false
ij_yaml_spaces_within_brackets = false
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "tuesday"
time: "10:00"
timezone: "Europe/Berlin"
groups:
golang:
patterns:
- "*"
13 changes: 13 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes

changelog:
categories:
- title: Notable changes
labels:
- '*'
exclude:
labels:
- dependencies
- title: Dependency updates
labels:
- dependencies
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Golang CI

on:
push:
branches: [oreilly-main]
pull_request:
types: [opened, reopened, synchronize]
schedule:
- cron: '15 3 * * 0'
workflow_dispatch:

jobs:
build:
name: CI Build
runs-on: ubuntu-22.04
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Setup tools
run: |
go install golang.org/x/lint/golint@latest
- name: Checkout code
uses: actions/checkout@v4
- name: Check Formatting
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "### Go formatting is off, please execute 'gofmt -w -s .' - see following diff: ###"
gofmt -s -d .
exit 1
fi
- name: Test Project
run: |
make test
- name: Build Project
run: |
make
55 changes: 55 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Publish release artifacts

on:
release:
types: [created]

jobs:
update_readme:
name: Update Readme
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Update versions in readme
run: |
sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${{ github.ref_name }}/" README.md
sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${{ github.ref_name }}/" README.md
sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${{ github.ref_name }}\//" README.md
- uses: peter-evans/create-pull-request@v6
name: Create Pull Request
with:
title: Update readme for ${{ github.ref_name }} release
commit-message: Update readme for ${{ github.ref_name }} release
body: Updating version references in the readme to ${{ github.ref_name }}
branch: update-readme-${{ github.ref_name }}
delete-branch: true

release:
name: Publish binaries
runs-on: ubuntu-22.04
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Project binaries
env:
CGO_ENABLED: 0
run: |
make xc
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/aws*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Loading
Loading