Cookie Consent by Free Privacy Policy Generator 📌 Self-hosted GitHub Actions runners using AWS CodeBuild


✅ Self-hosted GitHub Actions runners using AWS CodeBuild


💡 Newskategorie: Programmierung
🔗 Quelle: dev.to

Introduction

I have always wanted to have the most efficient setup for the self-hosted GitHub Actions runners.
I think AWS recent announcement helps to approach this goal.

So I was keen to test it myself.

Instructions

Open the CodeBuild console and create a new project with the name aws-codebuild-github-action-self-hosted-runner. This name will be also used in the GitHub actions workflow at the runs-on parameter.

Open the CodeBuild console and create a new project

Select GitHub from the available Sources and select the default connect option Connect using OAuth.
You can find more details on GitHub OAuth here.

Select GitHub from the available Sources

Select the default connect option  raw `Connect using OAuth` endraw

Select the GitHub repository from the drop-down list.

Select the GitHub repository

Check the Rebuild every time a code change is pushed to this repository checkbox at the Primary source webhook events section.

Select WORKFLOW_JOB_QUEUED from the Event types.

Select  raw `WORKFLOW_JOB_QUEUED` endraw  from the Event types

Leave the default values in the Environment section.

Leave the default values in the Environment section

Choose Use a buildspec file in the Buildspec section.

Choose  raw `Use a buildspec file` endraw  in the Buildspec section

And at the last step click on Create build project.

Click on Create build project

After the project is created you can check if the required webhook exists in your repo.
Please use the following URL after you replace the words written in capital letters with your repo's related values:

https://github.com/USER-NAME/REPOSITORY-NAME/settings/hooks

Check if the required webhook exists in your repo

The last step is to create a workflow in your repo and then you can start using CodeBuild as your self-hosted GitHub action runner as a just-in-time runner.

name: Hello World

on: [push]

jobs:
  codebuild-job:
    runs-on: codebuild-aws-codebuild-github-action-self-hosted-runner-${{ github.run_id }}-${{ github.run_attempt }}
    steps:
      - run: |
          echo "Hello World!"

You just need to add this GitHub Actions workflow yaml file to the following place in your repo and name the file as you like it. In my case it's codebuild.yaml:

.github/workflows/codebuild.yml

And when you commit and push this change the CodeBuild job just kicks off.

CodeBuild job just kicks off

...

✅ Harnessing Managed GitHub Action Runners on AWS CodeBuild for Efficient DevOps Workflows


📈 65.68 Punkte

✅ Scaling GitHub Actions Runners on AWS: A Cost-Effective and Scalable Approach


📈 48.34 Punkte

✅ Supercharge�your CI/CD with �Arm Runners in GitHub Actions


📈 41.58 Punkte

✅ Understanding GitHub Actions Runners


📈 41.58 Punkte

✅ macOS vs Ubuntu: GitHub Actions Runners


📈 41.58 Punkte

✅ Deploying a Vite app on GitHub Pages using GitHub Actions with GitHub Secrets


📈 36.23 Punkte

✅ AWS CodeBuild


📈 35.36 Punkte

✅ AWS CodeBuild Plugin up to 0.26 on Jenkins AWSClientFactory.java information disclosure


📈 35.36 Punkte

✅ Jenkins AWS CodeBuild Plugin bis 0.26 AWSClientFactory.java Information Disclosure


📈 35.36 Punkte

✅ Desplegar imagen docker usando AWS CodeBuild.


📈 35.36 Punkte

✅ Conversational Actions overview - Actions Builder & Actions SDK


📈 33.77 Punkte

✅ Actions Project - Actions Builder & Actions SDK


📈 33.77 Punkte

✅ Get started quickly with AWS Trainium and AWS Inferentia using AWS Neuron DLAMI and AWS Neuron DLC


📈 31.59 Punkte

✅ Github ARC Runners sur EKS - Assume roles


📈 30.33 Punkte

✅ Introducing RunsOn: 10x cheaper GitHub Action runners


📈 30.33 Punkte

✅ Deploy a ReactJS App with ViteJS to GitHub Pages using GitHub Actions | Step-by-Step Tutorial


📈 29.43 Punkte

✅ How to Deploy an Express.js App on GitHub Pages Using GitHub Actions


📈 29.43 Punkte

✅ Build an end-to-end MLOps pipeline using Amazon SageMaker Pipelines, GitHub, and GitHub Actions


📈 29.43 Punkte

✅ Automate Docker Image Builds and Push to GitHub Registry Using GitHub Actions 🐙


📈 29.43 Punkte

✅ Deploy Terraform resources to AWS using GitHub Actions via OIDC


📈 29.38 Punkte

✅ Deploy App on AWS ECS Fargate using Github Actions


📈 29.38 Punkte

✅ Deploy App on AWS ECS Fargate using Github Actions


📈 29.38 Punkte

✅ How to deploy to an AWS ec2 machine using Github Actions


📈 29.38 Punkte

✅ Cargo Actions: An efficient tool for managing and creating GitHub Actions workflow templates


📈 29.31 Punkte

✅ actions-hottest🚀: GitHub Actions for Commenting on Golang Unit Test Results in Pull Requests


📈 29.31 Punkte

✅ Gitea is working on a built-in CI/CD tool called Gitea Actions (compatible with GitHub Actions syntax)


📈 29.31 Punkte

✅ Deploying Flutter Web to S3 with CodeCommit, Codepipeline, Codebuild and CodeDeploy


📈 28.6 Punkte

✅ <self-close /> or <not-to-self-close></not-to-self-close>


📈 26.85 Punkte

✅ How to Create a GitHub Profile Readme with GitHub Actions, Profile Trophy, and Custom Icons Badges


📈 24.85 Punkte

✅ Deploy Nextjs app to github-pages with Github Actions


📈 24.85 Punkte

✅ Bonus Tip: How to Use GitHub Actions to Test a GitHub Action Whose Output Must be Visually Inspected


📈 24.85 Punkte

✅ How to Test a GitHub Action with GitHub Actions


📈 24.85 Punkte











matomo

Datei nicht gefunden!