Deploy Docker to AWS EC2 with GitHub Actions

  Рет қаралды 13,951

Bitovi

Bitovi

Жыл бұрын

Take your Dockerized application and deploy it to Amazon's Elastic Compute Cloud (AWS EC2) in a few steps.
Github Actions is a CI/CD platform which allows you to automate your build, test, and deployment pipeline. A GitHub Actions workflow is trigged when an event happens in your repository.
☆ See how to view logs for your instance here: • Accessing AWS Instance...
● Link to the repo HERE: github.com/bitovi/github-acti...
● Not using Docker for your app? Learn how: www.bitovi.com/academy/learn-...
● Working on something cool? Share it with us on Discord HERE: / discord
● Have a complex DevOps project you need help with? Book a consultation HERE: www.bitovi.com/en/devops-cons...
● Check out our complete guide to DevOps HERE: www.bitovi.com/blog/the-compl...
● Follow us on Twitter HERE: / bitovi
#devops #github #githubactions #bitops #aws #docker

Пікірлер: 24
@karenjuliethchavesballeste8195
@karenjuliethchavesballeste8195 Жыл бұрын
I love it ! so simple ,easy , neat...everything I need
@Bitovi
@Bitovi Жыл бұрын
Hey Karen! We're so glad you found it useful!
@daniel_bailo
@daniel_bailo Жыл бұрын
it's possible to force to run unittests and if all them passed, then deploy?
@Bitovi
@Bitovi Жыл бұрын
Hey @MrDanBailo! Great question and I saw you found our Discord. Thanks for popping in and asking your question there. I know Leo is working on getting you a good answer. 😊
@pele220
@pele220 Жыл бұрын
will this work when we try to deploy to a VPC peering setup ?
@Bitovi
@Bitovi Жыл бұрын
Hey there! We are currently doing a deploy using the default VPC. So as long as the default VPC have that configuration, it will work. If that's not the case, feel free to open an issue in our repo, or contact us through our Discord channel - discord.gg/MeFeRs99. We have a plan to add the ability to create a new VPC or use an existing one in our roadmap. So stay tuned!
@diegoalcade8530
@diegoalcade8530 9 ай бұрын
If this create an ec2 instance and cannot use an existing one, can i then acces the ec2 some way?
@Bitovi
@Bitovi 9 ай бұрын
Hey! Thanks for your question. To clarify, are you asking if you can use an existing EC2 instance? Also, feel free to join us on Discord and ask your question there. It's sometimes helpful if you want to share code snippets, etc. discord.gg/e89835ZmZP
@Bitovi
@Bitovi 9 ай бұрын
Hey @diegoalcade8530, You could use any of the defaults connections methods present here. (docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-methods.html) If you don't have but want or need the ssh keys, you create a secret in AWS Secret Manager by setting up the option create_keypair_sm_entry to true. (github.com/marketplace/actions/deploy-docker-to-aws-ec2#ec2-inputs)
@huzailhassan4021
@huzailhassan4021 Жыл бұрын
hello, any way we can use an existing ec2? thanks
@Bitovi
@Bitovi Жыл бұрын
Hey Huzail, Thanks for your suggestion! Our action can’t use an existing EC2 at this time. That said, this is a fantastic feature request for a future enhancement! If you haven’t already created an issue ticket for the enhancement, we will be sure to post it up in the next 24 hours. And stay connected with us by joining our Discord server, we can keep you updated there. discord.gg/J7ejFsZnJ4
@huzailhassan4021
@huzailhassan4021 Жыл бұрын
@@Bitovi hello, where do i create a issue ticket? thanks
@Bitovi
@Bitovi Жыл бұрын
@@huzailhassan4021 You can find the repo on GitHub here: github.com/bitovi/github-actions-deploy-docker-to-ec2/issues
@BorysPratsiuk
@BorysPratsiuk 7 ай бұрын
@@Bitovi is posible to work with existing EC2 now?
@Bitovi
@Bitovi 7 ай бұрын
@@BorysPratsiuk thanks for checking in! It is not possible at this time. However, we do have it on our roadmap.
@ankushagarwal7378
@ankushagarwal7378 Жыл бұрын
how to create a env in container or pass env file in container ?
@Bitovi
@Bitovi Жыл бұрын
Hey Ankush! Great question. There is a specific section in the README (github.com/marketplace/actions/deploy-docker-to-aws-ec2#environment-variables) for this specific question. We allow multiple sources, all available in your app folder inside your EC2 instance as an .env file. Of course, if you have trouble finding it or just want to connect, join us on Discord: discord.gg/J7ejFsZnJ4
@santy_dev4620
@santy_dev4620 Жыл бұрын
is it compatible with the aws free tier?
@Bitovi
@Bitovi Жыл бұрын
@santy_dev Yes, this github action supports the free tier AWS. However be aware that you, as the implementer, will need to ensure the resources that are used are free tier. For example, the EC2 instance size should be t2.small to ensure free tier resources are used.
@Bitovi
@Bitovi Жыл бұрын
If you have more questions, feel free to reach out to us on Discord - discord.gg/J7ejFsZnJ4
@user-ps5kt7ye3f
@user-ps5kt7ye3f 5 ай бұрын
i think it's t2.micro not small *cmiiw @@Bitovi
@DerberAlter
@DerberAlter Жыл бұрын
Nice video. How do I get my AW_ACCESS_KEY and so on?
@Bitovi
@Bitovi Жыл бұрын
Hey Derber! This was such a good question that our DevOps team created another video just to answer it - kzbin.info/www/bejne/eWWraWSJoJ16e80 Let us know how it goes and thanks for inspiring a new video!
@Bitovi
@Bitovi Жыл бұрын
And if you have additional questions, we're always around to answer questions directly in our Discord - discord.gg/J7ejFsZnJ4
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 18 МЛН
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 60 МЛН
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 391 М.
Github Action to AWS ECR (Docker Image) | Full  Hands-on Tutorial
15:01
Data Science Garage
Рет қаралды 4,8 М.
How to design a Deployment Pipeline (GitOps)
11:01
DevOps Journey
Рет қаралды 24 М.
Deploy React App to AWS EC2 using GitHub Actions
28:40
Integration Ninjas
Рет қаралды 5 М.
Hosting a Docker Container on AWS EC2 Free Tier in under 12 minutes
11:35
Vincent Stevenson
Рет қаралды 37 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,3 МЛН
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 5 МЛН