How to configure self-hosted runner in GitHub Actions | Self-hosted build agent in GitHub Actions

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • www.coachdevop...
    Advantages of self-hosted runners:
    full control over the environment and tools
    Any size machine or configuration
    Secure access and networking
    Pre-requisites:
    Project configured in GitHub
    workflow yaml already checked-in GitHub. If you don't have one, click here to create one.
    Create a virtual machine with at least 2 GB RAM. we will use EC2 instance in AWS cloud.
    Install Maven on runner EC2 instance
    How to create self-hosted GitHub Actions Runner?
    Go to GitHub Repo - Actions- Runners
    Click on self-hosted runners --New Runner
    Click on Linux
    Perform update
    Download installables
    Configure the runner
    Create a workflow or modify your workflow to include GitHub runner:

КОМЕНТАРІ • 10

  • @Daveooooooooooo0
    @Daveooooooooooo0 3 місяці тому +1

    Thanks

  • @ParagOak
    @ParagOak 6 місяців тому

    Thanks for sharing, can you please create same tutorial with bitbucket spring boot app with angular

  • @SatheeshRaja-md3zp
    @SatheeshRaja-md3zp 4 місяці тому

    How to check the if else condition in self hosted github action it throws some error.

  • @naren06938
    @naren06938 5 місяців тому

    Sir, why They offer GitHub Managed Runners at free of cost? Usually i did projects All build, Test, scans on Github Managed Runners and EKS/K8S Deployment on self-hosted runner only.....is there any paid subscriptions are there to production deployments in Github Actions?

    • @DevOpsCoach
      @DevOpsCoach  4 місяці тому

      GitHub Actions runners are free for public repositories and come with a certain amount of free usage for private repositories. check here for more info--> docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions

  • @samiwaxiri58
    @samiwaxiri58 2 місяці тому

    Hello sir, i have been configured the same way and it was worked. but after one week the github action runner is showing me offline. then i recofigured again and today check it is again offline. why it has been offline. i need your help please because i am frustrated now

    • @DevOpsCoach
      @DevOpsCoach  2 місяці тому

      did you stop the ec2 instance?

    • @samiwaxiri58
      @samiwaxiri58 2 місяці тому

      @@DevOpsCoach no sir, someone suggest me that you need add ssh to github then you will never face the offline issue.
      Could you please guide me how to add ssh to github?
      by the way thenk you for replying, appreciated sir

    • @sanjaykeshwar2100
      @sanjaykeshwar2100 9 днів тому

      @@samiwaxiri58 you can run the runner as a service on your ec2, to keep it up and running. Use the script svc under actions-runner dir.