Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure the github action to deploy docker container to aws elasticbeanstalk multi-container environment

Hi I am using github aciton to do my CICD pipline. And I try to deploy multiple docker container to AWS elasticbeanstalk with multiple-container environment.

In my github action, I have already successfully push my docker images to the docker hub. What should I do next in my github action? Should I still deploy the zip file to AWS elasticbeanstalk or something else? Would someone give something guides please? Thank you!

like image 282
lllllll Avatar asked Dec 18 '25 09:12

lllllll


1 Answers

After pushing to Docker Hub, you need to create an authentication file that contains information required to authenticate with the registry using these instructions.

Add the authentication parameter to the Dockerrun.aws.json configuration file

The ElasticBeanstalk multi-container environment only supports hosted images. As a result, you can deploy the Dockerrun.aws.json configuration file on it's own without having to create a zip archive of the source code. If you do zip the source code with the configuration file, it becomes available in the EC2 container instances and is accessible in the /var/app/current/

Read more here: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_v2config.html

like image 140
pfcodes Avatar answered Dec 20 '25 00:12

pfcodes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!