Deploy Spring Boot application to AWS EC2 using GitHub Actions
Vložit
- čas přidán 18. 08. 2023
- In this video I will explain how you can deploy your Spring Boot application to AWS EC2 using docker and GitHub Actions. I will write CICD configuration(GitHub Workflow) to deploy Spring Boot application to AWS EC2 by containerization using docker.
Example Workflow: github.com/integrationninjas/...
GitHub Repository: github.com/integrationninjas/...
Search Queries:
What is docker
Deploy spring boot application to AWS EC2 using GitHub Actions
How to create GitHub self-hosted runner
How to set GitHub actions for CI/CD with AWS EC2
CI/CD with GitHub Action
Auto deploy spring boot app on AWS EC2
Creating a continuous delivery pipeline with GitHub Actions
CI/CD pipeline using GitHub Actions
Docker benefits
Deploy docker images on AWS EC2 with GitHub Actions
How to deploy applications using GitHub Actions
Auto build and push docker images to docker hub
Build docker image
Push image to docker hub
Deploy spring boot app on AWS EC2 instance
Github actions workflow
Github actions Docker
Github actions aws
Github actions build docker image
Aws github actions
Automatic deployment with github actions
Build docker image with github actions
Github actions ci/cd aws
Deploy to ec2 using github actions
Github hosted runner
How to configure github self hosted runner
Understanding github actions
Learn github actions
Quickstart for github actions
Workflow syntax for github actions
Essential features of github actions
Github actions deepdive
Cicd basics
Cicd github actions
Cicd devops
Cicd pipeline using github actions
Cicd github actions aws
Github actions deploy to aws ec2
Docker github actions
Deploy github actions
Github actions ec2
Github actions secrets
Github actions self hosted runners
Github hosted runners
Github actions course
Github actions beginner tutorial
Github actions build and push docker image
Docker tutorial
Docker explained
Docker container
Docker spring boot
Docker spring boot application
how to write dockerfile for spring boot application
how to write dockerfile for spring boot application
how to write dockerfile for java application
dockerize spring boot application
dockerize java application
docker spring boot microservices
github actions java
how to deploy spring boot project on aws
how to deploy spring boot application for free
Creating jar and deploying spring boot application to cloud
How to dockerize your spring boot api
Deploy java spring boot application on aws ec2 instance
Deploy spring boot app to production
Spring boot on aws
Deploy spring boot application
How to easily deploy a spring boot application to aws ec2
Dockerizing your spring boot application
Spring boot application deployment in aws cloud
Spring boot on docker
Create spring boot docker image and deploy
Deployment on cloud
Deploy applications on aws
How to deploy java project on aws
Deploy java application on aws
Deploy java application on docker
Deploying java application with docker
Java application deployment
Spring boot deployment tutorial
Deploying Java applications on Amazon ec2
Amazon web services
#aws #awsec2 #docker #devops #devopstutorial #cicd #integration #githubactions #github #dockertraining #springboot #dockerfile #dockercontainer #dockerhub #spring #java #javaprogramming #javaproject #javaproject #javatutorial #springboottutorial #javadeveloper #maven #maventutorial
Used this to deploy a test site onto EC2 Instance. Thank you!
Glat it helped.
Indeed it is very helpful, thanks for putting very clear and vivid explanation.
Insightful, well explained
Very helpful topic and you explained every points very well.. Waiting for more videos on Springboot & AWS..
Owesome, very well explained
HELPED A LOT
Thanks.
good explanation
Thanks, keep watching.
Great content sir. Looking forward to learn a lot from this channel. Thank you 😊
Glad it was helpful. Keep watching.
Very knowledgeable
Nice sir , thanks for sharing 👍
Very helpful content
The best video ever. Thank you :)
Glad you liked it!
Gud one 👍🏼
👍🏻👍🏻
thanks for video
Glad it helped!
👏
Hey what is the instance type you choosed in while lanching EC-2 instance ?
Need to run the runner from the instance every time.
can we configure the runner to keep running in the background?
Yes, absolutely. You can configure the self-hosted runner application as a service to automatically start the runner application when the machine starts.
Refer docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/configuring-the-self-hosted-runner-application-as-a-service
Very nice. Can you make a tutorial on how to deploy to GCP or Azure or heroku?
I will soon create on Azure and GCP
Also it will be nice to see the process of creating the resources. For some reasons, my deploy action isn't being picked up by the self hosted runner in AWS
I have been able to solve this by setting runs-on: self-hosted but now the deploy fails and I don't even know why
what changes in the workflows if i am connecting to a database (mysql)
You will need a docker compose file having database configuration. I will create a tutorial on that soon.
I did same with ECS Fargate cluster thru Github Actions, I failed to deploy ECS-EC2, but got success in Fargate, whats the reason?
Can you share the error here for analysis?
Hi sir. I need to create a runner for each project. Or i can use this runner for other project
Yes if you have organisation account, you can share and manage self-hosted runners across your organization using new policies and labels. Please go through this document:
docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-an-organization
Also, do I need to have docker up and running in my ec2 instance before this will be able to run? I just created my ec2 instance from scratch but my deploy job is failing without a reason
Yes, you need to have Docker installed and running on your EC2 instance for the GitHub Actions workflow to deploy your app using Docker.
I have docker up and running yet my deploy job is still failing@@IntegrationNinjas
also sometimes my runner goes to sleep and cannot service requests
Check if runner is active and listening to jobs.
@@IntegrationNinjasHow to keep runner always in idle mode.?
Is there any pipeline to automate whole process
What exactly you are looking for?
.
very confusing .... missed lots of things
Would like to hear missed things in order to improve.
i run to step deploy: Pull Image from docker hub
docker pull lambmt2k/clover-network:latest
throw error command not found
Can u see if docker is installed on your runner?
Which runner you’re using and if possible share workflow here
great content guys.