{"id":17088073,"url":"https://github.com/kciter/aws-ecr-action","last_synced_at":"2025-04-04T23:09:52.343Z","repository":{"id":41579757,"uuid":"216736085","full_name":"kciter/aws-ecr-action","owner":"kciter","description":"This Action allows you to create Docker images and push into a ECR repository.","archived":false,"fork":false,"pushed_at":"2024-08-20T00:11:23.000Z","size":45,"stargazers_count":146,"open_issues_count":11,"forks_count":116,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-24T09:19:31.155Z","etag":null,"topics":["aws","ci-cd","ecr","github-actions"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kciter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-22T06:11:00.000Z","updated_at":"2024-10-09T09:51:27.000Z","dependencies_parsed_at":"2024-11-19T04:57:39.884Z","dependency_job_id":null,"html_url":"https://github.com/kciter/aws-ecr-action","commit_stats":{"total_commits":50,"total_committers":17,"mean_commits":"2.9411764705882355","dds":0.7,"last_synced_commit":"8a3ed45fb85abd9b268841315d21a22c3ac4b662"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kciter%2Faws-ecr-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kciter%2Faws-ecr-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kciter%2Faws-ecr-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kciter%2Faws-ecr-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kciter","download_url":"https://codeload.github.com/kciter/aws-ecr-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247261612,"owners_count":20910108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","ci-cd","ecr","github-actions"],"created_at":"2024-10-14T13:36:10.028Z","updated_at":"2025-04-04T23:09:52.321Z","avatar_url":"https://github.com/kciter.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS ECR Action\n\nThis Action allows you to create Docker images and push into a ECR repository.\n\n## Parameters\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `access_key_id` | `string` | | Your AWS access key id |\n| `secret_access_key` | `string` | | Your AWS secret access key |\n| `account_id` | `string` | | Your AWS Account ID |\n| `repo` | `string` | | Name of your ECR repository |\n| `region` | `string` | | Your AWS region |\n| `create_repo` | `boolean` | `false` | Set this to true to create the repository if it does not already exist |\n| `set_repo_policy` | `boolean` | `false` | Set this to true to set a IAM policy on the repository |\n| `repo_policy_file` | `string` | `repo-policy.json` | Set this to repository policy statement json file. only used if the set_repo_policy is set to true |\n| `image_scanning_configuration` | `boolean` | `false` | Set this to True if you want AWS to scan your images for vulnerabilities |\n| `tags` | `string` | `latest` | Comma-separated string of ECR image tags (ex latest,1.0.0,) |\n| `dockerfile` | `string` | `Dockerfile` | The path to the Dockerfile to be used (e.g., path/to/Dockerfile) |\n| `extra_build_args` | `string` | `\"\"` | Extra flags to pass to docker build (see docs.docker.com/engine/reference/commandline/build) |\n| `cache_from` | `string` | `\"\"` | Images to use as cache for the docker build (see `--cache-from` argument docs.docker.com/engine/reference/commandline/build) |\n| `path` | `string` | `.` | Path to Dockerfile, defaults to the working directory |\n| `prebuild_script` | `string` | | Relative path from top-level to script to run before Docker build |\n| `registry_ids` | `string` | | : A comma-delimited list of AWS account IDs that are associated with the ECR registries. If you do not specify a registry, the default ECR registry is assumed |\n\n## Usage\n\n```yaml\njobs:\n  build-and-push:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n    - uses: docker://ghcr.io/kciter/aws-ecr-action:latest\n      with:\n        access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n        secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n        account_id: ${{ secrets.AWS_ACCOUNT_ID }}\n        repo: docker/repo\n        region: ap-northeast-2\n        tags: latest,${{ github.sha }}\n        create_repo: true\n        image_scanning_configuration: true\n        set_repo_policy: true\n        repo_policy_file: repo-policy.json\n```\n\nIf you don't want to use the latest docker image, you can point to any reference in the repo directly.\n\n```yaml\n  - uses: kciter/aws-ecr-action@master\n  # or\n  - uses: kciter/aws-ecr-action@v3\n  # or\n  - uses: kciter/aws-ecr-action@0589ad88c51a1b08fd910361ca847ee2cb708a30\n```\n\n## License\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkciter%2Faws-ecr-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkciter%2Faws-ecr-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkciter%2Faws-ecr-action/lists"}