Skip to content

Commit

Permalink
ci: fix notation plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense committed Mar 13, 2024
1 parent 3ba0338 commit 2fcdffd
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
if: ${{ inputs.should-upload-artefact-to-ecr }}
uses: notaryproject/notation-action/sign@v1
with:
plugin_name: aws-signer
plugin_name: notation-aws-signer
plugin_url: https://d2hvyiie56hcat.cloudfront.net/linux/amd64/plugin/latest/notation-aws-signer-plugin.zip
plugin_checksum: cccfe8fdcdf853d83fd57ffc80524eddda75ad7ae9d9a257b087007230ec02f9
key_id: arn:aws:signer:eu-west-1:054614622558:/signing-profiles/vol_app_20240313124948142600000001
Expand Down
15 changes: 13 additions & 2 deletions infra/terraform/modules/account/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,19 @@ module "ecr" {

repository_name = "vol-app/${each.key}"

repository_read_access_arns = var.ecr_read_access_arns
repository_read_write_access_arns = var.ecr_read_write_access_arns
repository_read_access_arns = concat(
[
module.github[0].oidc_readonly_role_arn,
],
var.ecr_read_access_arns
)

repository_read_write_access_arns = concat(
[
module.github[0].oidc_role_arn,
],
var.ecr_read_write_access_arns
)

create_lifecycle_policy = true
repository_lifecycle_policy = jsonencode({
Expand Down
1 change: 1 addition & 0 deletions infra/terraform/modules/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ No resources.

| Name | Description |
|------|-------------|
| <a name="output_oidc_readonly_role_arn"></a> [oidc\_readonly\_role\_arn](#output\_oidc\_readonly\_role\_arn) | The ARN of the GitHub Readonly OIDC role |
| <a name="output_oidc_role_arn"></a> [oidc\_role\_arn](#output\_oidc\_role\_arn) | The ARN of the GitHub OIDC role |
<!-- END_TF_DOCS -->
5 changes: 5 additions & 0 deletions infra/terraform/modules/github/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ output "oidc_role_arn" {
description = "The ARN of the GitHub OIDC role"
value = try(module.iam_github_oidc_role[0].arn, null)
}

output "oidc_readonly_role_arn" {
description = "The ARN of the GitHub Readonly OIDC role"
value = try(module.iam_github_oidc_readonly_role[0].arn, null)
}

0 comments on commit 2fcdffd

Please sign in to comment.