Skip to content

Commit

Permalink
Make ecr public
Browse files Browse the repository at this point in the history
  • Loading branch information
Guysnacho committed Oct 18, 2024
1 parent 29c25c7 commit 43e3c32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{needs.TF-Apply.outputs.registry_url}}
ecr: true
# We're already authenticated thanks to aws-actions/configure-aws-credentials
# username: ${{ secrets.AWS_ACCESS_KEY_ID }}
# password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: 🐳 Build Image
uses: docker/build-push-action@v6
Expand Down
2 changes: 1 addition & 1 deletion terraform/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module "public_ecr" {
source = "terraform-aws-modules/ecr/aws"

repository_name = local.ecr_name
repository_type = "private"
repository_type = "public"

repository_read_write_access_arns = [data.aws_caller_identity.current.arn]
repository_lifecycle_policy = jsonencode({
Expand Down

0 comments on commit 43e3c32

Please sign in to comment.