Deploy Spring Boot application to AWS EC2 using GitHub Actions

Sdílet
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

Komentáře • 52

  • @njabulo5791
    @njabulo5791 Před 4 měsíci +3

    Used this to deploy a test site onto EC2 Instance. Thank you!

  • @kunalacharya5291
    @kunalacharya5291 Před 11 měsíci +1

    Indeed it is very helpful, thanks for putting very clear and vivid explanation.

  • @vyomkothari8959
    @vyomkothari8959 Před 11 měsíci +1

    Insightful, well explained

  • @abhijitdas-rb3dg
    @abhijitdas-rb3dg Před 11 měsíci +1

    Very helpful topic and you explained every points very well.. Waiting for more videos on Springboot & AWS..

  • @adityaanand4369
    @adityaanand4369 Před 11 měsíci +2

    Owesome, very well explained

  • @VISHNUREDDY11756
    @VISHNUREDDY11756 Před měsícem +1

    HELPED A LOT

  • @ankitagarwal969
    @ankitagarwal969 Před měsícem +1

    good explanation

  • @shwetabhat9981
    @shwetabhat9981 Před 10 měsíci +1

    Great content sir. Looking forward to learn a lot from this channel. Thank you 😊

  • @deepanshumishra8687
    @deepanshumishra8687 Před 11 měsíci +1

    Very knowledgeable

  • @darshankhatri9625
    @darshankhatri9625 Před 11 měsíci

    Nice sir , thanks for sharing 👍

  • @Sonupurohit69
    @Sonupurohit69 Před 11 měsíci +1

    Very helpful content

  • @rickdevmajumder5729
    @rickdevmajumder5729 Před měsícem +1

    The best video ever. Thank you :)

  • @garvitsharma9505
    @garvitsharma9505 Před 11 měsíci +1

    Gud one 👍🏼

  • @sachinrameshvyas9642
    @sachinrameshvyas9642 Před 11 měsíci +1

    👍🏻👍🏻

  • @benabdallahmohamed1125
    @benabdallahmohamed1125 Před 5 měsíci +1

    thanks for video

  • @kunalharsh6996
    @kunalharsh6996 Před 11 měsíci +2

    👏

  • @JAVAFULLSTACKDEVELOPER-zx7gt

    Hey what is the instance type you choosed in while lanching EC-2 instance ?

  • @sagarkhatri5383
    @sagarkhatri5383 Před měsícem +1

    Need to run the runner from the instance every time.
    can we configure the runner to keep running in the background?

    • @IntegrationNinjas
      @IntegrationNinjas  Před měsícem

      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

  • @mrowox
    @mrowox Před 8 měsíci +1

    Very nice. Can you make a tutorial on how to deploy to GCP or Azure or heroku?

    • @IntegrationNinjas
      @IntegrationNinjas  Před 8 měsíci +1

      I will soon create on Azure and GCP

    • @mrowox
      @mrowox Před 8 měsíci

      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

    • @mrowox
      @mrowox Před 8 měsíci

      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

  • @ngonimugandani4504
    @ngonimugandani4504 Před 8 měsíci +1

    what changes in the workflows if i am connecting to a database (mysql)

    • @IntegrationNinjas
      @IntegrationNinjas  Před 8 měsíci

      You will need a docker compose file having database configuration. I will create a tutorial on that soon.

  • @naren06938
    @naren06938 Před 10 měsíci

    I did same with ECS Fargate cluster thru Github Actions, I failed to deploy ECS-EC2, but got success in Fargate, whats the reason?

  • @moriljeanfrancois8532
    @moriljeanfrancois8532 Před 7 měsíci +1

    Hi sir. I need to create a runner for each project. Or i can use this runner for other project

    • @IntegrationNinjas
      @IntegrationNinjas  Před 7 měsíci

      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

  • @mrowox
    @mrowox Před 8 měsíci +1

    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

    • @IntegrationNinjas
      @IntegrationNinjas  Před 8 měsíci

      Yes, you need to have Docker installed and running on your EC2 instance for the GitHub Actions workflow to deploy your app using Docker.

    • @mrowox
      @mrowox Před 8 měsíci

      I have docker up and running yet my deploy job is still failing@@IntegrationNinjas

    • @mrowox
      @mrowox Před 8 měsíci

      also sometimes my runner goes to sleep and cannot service requests

    • @IntegrationNinjas
      @IntegrationNinjas  Před 6 měsíci

      Check if runner is active and listening to jobs.

    • @danujansivasundaralingam5772
      @danujansivasundaralingam5772 Před 6 měsíci

      ​@@IntegrationNinjasHow to keep runner always in idle mode.?

  • @aakibkhan4299
    @aakibkhan4299 Před 9 měsíci +1

    Is there any pipeline to automate whole process

  • @Shinigami4rt
    @Shinigami4rt Před 3 měsíci +1

    .

  • @amirrahi9573
    @amirrahi9573 Před 15 dny +1

    very confusing .... missed lots of things

  • @user-sb4ge8zn4o
    @user-sb4ge8zn4o Před 10 měsíci +1

    i run to step deploy: Pull Image from docker hub
    docker pull lambmt2k/clover-network:latest
    throw error command not found

    • @IntegrationNinjas
      @IntegrationNinjas  Před 10 měsíci

      Can u see if docker is installed on your runner?
      Which runner you’re using and if possible share workflow here

    • @TheShareonz
      @TheShareonz Před 27 dny

      great content guys.