Skip to main content

Posts

Showing posts from April, 2023

how to deploy a static website in AWS and compare which approach is suitable for production workloads

1. Deploying a static website using S3 Amazon S3 (Simple Storage Service) is a cloud storage service that allows you to store and retrieve any amount of data from anywhere on the web. S3 can also be used to host static websites, making it an ideal choice for simple, low-traffic sites that don't require advanced features such as server-side scripting. Step 1: Create an S3 bucket and enable static website hosting The first step to deploying a static website using S3 is to create an S3 bucket and enable static website hosting. Here's how to do it: 1. Log in to the AWS Management Console and navigate to the S3 service. 2. Click on the "Create bucket" button and provide a unique name for your bucket. 3. Select the region where you want to host your bucket and click "Create." 4. Once your bucket is created, click on it and navigate to the "Properties" tab. 5. Click on the "Static website hosting" option and select "Enable website hosting....

Best Practices to clean up GitHub Actions Workspace

    GitHub Actions is a powerful and popular automation tool that allows developers to automate their software workflows. It provides an environment for running scripts, testing code, and deploying applications. One of the key features of GitHub Actions is its ability to create a workspace where code can be checked out and built. However, as with any tool that generates files, GitHub Actions can create clutter in the workspace. This clutter can cause issues with build failures, errors, and storage limitations. Therefore, it is essential to properly clean up the GitHub Actions workspace after every job. In this blog, we will discuss how to clean up the workspace and the best practices to follow. What is the GitHub Actions Workspace? The GitHub Actions workspace is a directory in the runner machine that GitHub creates for each job in a workflow. It is the working directory where code is checked out, built, and processed during the workflow. The workspace directory can be access...

comparing self hosted runners with custom images and self hosted runners using github runner images

    When it comes to setting up a self-hosted runner for GitHub Actions, there are two main options: using a custom image or using one of the GitHub-provided runner images. In this post, we'll explore the pros and cons of each approach.    Custom images A custom image is an image that you create and manage yourself. You can create a custom image from scratch or start with an existing image and customize it to meet your needs. Here are some advantages of using a custom image: Greater control With a custom image, you have complete control over the software and configuration on the runner. This means you can include any tools or dependencies you need for your workflows. You can also fine-tune the configuration of the runner to optimize performance or security. Better security By using a custom image, you can ensure that only trusted software is running on the runner. This can be particularly important if your workflows involve sensitive data or credentials. You can also...