This project provides a workflow to push a Docker image to Amazon Elastic Container Registry (ECR) and pull the image from ECR. It utilizes GitHub Actions to automate the process.
- Docker: Make sure Docker is installed on your local machine.
-
Clone the repository:
git clone <repository-url>
-
Change directory to the project dIRECTORY
cd project-directory
-
Run the following commands to push the image to ECR and pull the image from ECR: git add . git commit -m "Update workflow and credentials" git push origin main docker pull <ECR_REGISTRY>/<ECR_REPOSITORY>:<IMAGE_TAG> docker run -d -p <HOST_PORT>:<CONTAINER_PORT> <ECR_REGISTRY>/<ECR_REPOSITORY>:<IMAGE_TAG>
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.
Feel free to modify and customize the README to match the specific details and requirements of your project. I hope this is helpful! Let me know if you have any other questions.