Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diomalta/aws-ecr-push
This package includes scripts for logging into the Amazon Elastic Container Registry (ECR), building Docker images, and pushing these images to an ECR repository.
https://github.com/diomalta/aws-ecr-push
actions aws ecr shell
Last synced: 6 days ago
JSON representation
This package includes scripts for logging into the Amazon Elastic Container Registry (ECR), building Docker images, and pushing these images to an ECR repository.
- Host: GitHub
- URL: https://github.com/diomalta/aws-ecr-push
- Owner: diomalta
- Created: 2023-12-22T11:12:31.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-26T22:30:45.000Z (10 months ago)
- Last Synced: 2024-01-27T20:44:14.077Z (10 months ago)
- Topics: actions, aws, ecr, shell
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ECR Push
This action builds, tags, and pushes a Docker image to AWS ECR.
## Environment Variables
| Name | Description |
|------------------------|--------------------------------------------------|
| AWS_ACCESS_KEY_ID | AWS Access Key ID |
| AWS_SECRET_ACCESS_KEY | AWS Secret Access Key |
| AWS_ECR_REGION | AWS ECR Region |
| IMAGE_REPOSITORY_URL | AWS ECR Image Repository URL |
| IMAGE_TAG | Docker Image Tag (default: random hash) |
| IMAGE_TAG_DEFAULT | Docker Image Tag Default (default: latest) |
| PATH_DOCKERFILE | Dockerfile Path (default: ./Dockerfile) |
| DOCKER_ARCHITECTURE | Docker Architecture (default: linux/amd64) |## Example Usage
```yaml
- name: diomalta/aws-ecr-push
uses: diomalta/[email protected]
env:
AWS_ECR_REGION: ${{ secrets.AWS_ECR_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
IMAGE_REPOSITORY_URL: ${{ secrets.IMAGE_REPOSITORY_URL }}
```