Posts

Showing posts with the label Github actions

Deploying Kotlin Ktor application on AWS Elastic Beanstalk using GitHub Actions

Image
Here’s a step-by-step guide to creating a Kotlin Ktor project and deploying it on AWS Elastic Beanstalk using GitHub Actions. Here is the general architecture diagram that we will be deploying. 1. Create a Kotlin Ktor Project Set up the project : Use the Ktor Project Generator to generate a starter project. Choose: Build System: Gradle (Kotlin DSL) Engine: Netty Add features like Serialization , ContentNegotiation , and Routing . Directory structure : Extract and open the project in your IDE (e.g., IntelliJ IDEA). Application entry point : Update the Application.kt file to define routes. Example: import io.ktor.application.* import io.ktor.response.* import io.ktor.routing.* import io.ktor.server.engine.* import io.ktor.server.netty.* fun main () { embeddedServer(Netty, port = 8080 ) { routing { get ( "/" ) { call.respondText( "Hello, AWS Elastic Beanstalk!" ) } } }.start(wait = true ) } Build...

Deploy a Spring Boot Application on Azure App Service Using GitHub Actions CI/CD

Image
Follow this step-by-step guide to deploy your Spring Boot application to Azure App Service using GitHub Actions for seamless CI/CD. Here is the general architecture diagram that we will be deploying. Step 1: Prerequisites Set Up Azure Resources: Azure App Service: Create an App Service instance for your application. Azure Container Registry (ACR): Create a registry for storing your application’s container image. Prepare Your GitHub Repository: Ensure your Spring Boot application source code is in a GitHub repository. Include a Dockerfile in your project for containerization (see Step 2). Install Azure CLI: Download and install Azure CLI . Log in to Azure: az login Enable Admin User in ACR: Go to the Azure portal > ACR > Settings > Access Keys. Enable Admin user and note down the username and password . Step 2: Add a Dockerfile Navigate to the root of your Spring Boot application project. Create a Dockerfile with the following content: FROM eclipse-temurin: 17 -jdk-a...

Deploy a .NET Core Application on Azure App Service Using GitHub Actions CI/CD

Image
Here's a step-by-step guide for deploying a .NET Core application to Azure App Service using GitHub Actions for CI/CD: Here is the general architecture diagram that we will be deploying. Step 1: Prerequisites Set Up Azure Resources : Log in to the Azure portal. Create an Azure App Service for hosting the application. Create an Azure Container Registry (ACR) to store your container images. Set Up Your GitHub Repository : Ensure your .NET Core application is hosted in a GitHub repository. Include a Dockerfile in the root of your project for containerization (example provided in Step 2). Install Azure CLI (if not already installed): Download and install the Azure CLI . Login to Azure CLI : az login Step 2: Add a Dockerfile to Your Project Navigate to the root of your .NET Core application. Create a Dockerfile for containerizing your application: FROM mcr.microsoft.com/dotnet/aspnet: 6.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk: 6.0 AS build WORKD...

Dockerize Spring Boot Application and Deploy Docker Image To Azure App Service Using GitHub Actions

Image
Hello everyone, Hope you are doing well. In this tutorial, you will learn how to d ockerize the spring boot application and deploy the docker image to the Azure app service using GitHub actions. A little bit of Background Azure App Service (Containerization and Docker ) Dockerize your app and host a custom Windows or Linux container in App Service. Run multi-container apps with Docker Compose. Migrate your Docker skills directly to App Service. More Info -  https://docs.microsoft.com/en-us/azure/app-service/overview Azure Container Registry Azure Container Registry allows you to build, store, and manage container images and artifacts in a private registry for all types of container deployments. Use Azure container registries with your existing container development and deployment pipelines. Use Azure Container Registry Tasks to build container images in Azure on-demand, or automate builds triggered by source code updates, updates to a container's base image, or timers. More Info -...