Questions tagged [github-actions-self-hosted-runners]

Use this tag when asking questions specific to self-hosted runners for GitHub Actions.

GitHub Actions offers the option to self-host your runners instead of using the cloud-based runners provided by GitHub. Using a self-hosted runner provides more control about the runner's configuration.

124 questions
0
votes
0 answers

GitHub actions on macOS using action/python plugin cause an error

I have created a MacOS self hosed runner for build and test machine purposes, in the middle of the running I a getting the the following error although I have installed python on mac/bin/sh: python: command not found So I have added the uses:…
0
votes
0 answers

GitHub Self Hosted Runner Failing to POST Logs

I've an organisation-level self hosted runner on an Ubuntu 22.04 host. It's successfully authenticated with the organisation and some jobs run successfully. However, logs aren't being sent from the runner to GitHub Enterprise, job success or…
0
votes
0 answers

How to create mutliple self hosted runner using github matrix

I would like to know how to use the Github action matrix to create multiple self hosted runner to deploy different databases. jobs: setup: runs-on: ubuntu-latest strategy: matrix: schema-runner : [runner1,runner2] …
0
votes
0 answers

Create multiple github self hosted runner dynamically on same machine for multiple databases

I am looking to create multiple self hosted github runner dynamically for each database on same machine. I am able to create manually but looking to automate this process and wanted to run different runner on different database. Is there any way to…
0
votes
0 answers

How to get latest GitHub self hosted action runner version inside Dockerfile

I am trying below code in Dockerfile but I am getting error while I build the Docker image. ENV GITHUB_RUNNER_VERSION='' RUN $(curl --silent "https://api.github.com/repos/actions/runner/releases/latest" | jq -r '.tag_name[1:]') >>…
0
votes
0 answers

How to add tags to the github manual workflow trigger (using workflow_dispatch event)?

I am looking to tag the row with one of the field users are entering. In this example screenshot from GitHub blog - In this example, I want to tag the row with loglevel tag. How do I do that? I am using manual workflow trigger to proliferate the…
0
votes
0 answers

Github actions workflow on self hosted runners failing due to deadlock on system resources

We have a workflow A that we run on self hosted mac. Now this workflow has a step a that requires access to some system resource 1 Now when we run multiple instances of workflow A at the same time, all of them try to access the system resource 1 at…
0
votes
0 answers

Run GitHub Actions workflows Jobs on 2 runners parallelly at a time

I'm using GitHub actions to copy the artifact to the runner/VM, here I added my VM as a self-hosted runner and ran the workflow directly on the runner. I'm downloading the artifact from artifactory and copying it to the deployment location, Now, I…
0
votes
2 answers

Codesign fails only in GitHubActions, Succeed in MacOS terminal & Jenkins

I'm trying to setup a GitHub actions workflow to perform build on MacOS(10.15.7) system using self-hosted runner. My action workflow for build including code sign-in as follows runs-on: [self-macos] steps: - uses: actions/checkout@master …
0
votes
1 answer

github workflow using environment variable

I have a self hosted Github Action runner on a Windows server, my goal is to migrate from Jenkins to GitHub's workflow. I have a very hard to time understand how to use the environment variables for some reason. I have a folder on my self hosted…
0
votes
0 answers

GitHub Self Hosted Runner Can't Find Command

I have the following Dockerfile: FROM ubuntu:20.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get -y install curl \ iputils-ping \ apt-transport-https \ tar \ jq \ python && \ curl -sL…
Max
  • 907
  • 2
  • 13
  • 27
0
votes
0 answers

How to use mvn with GitHub actions (self-hosted runner)

I am using GitHub enterprise server, so I cannot use stCarolas/setup-maven. (because it is not an verified account). I think it is normal to pre-install maven in runner, but I am forbidden to do so by my administrators. How should I use the mvn…
0
votes
1 answer

How to get commit count of the repository in github actions?

For our application build number, we are using the total number of commits till date of the repository in the branch building. This one was achieved earlier using git log --oneline | wc -l Earlier we used jenkins and now we are changing to github…
0
votes
1 answer

Github Self-Hosted runner registration auth fails in GCE

I am setting up self hosted runner on the Google compute engine by following the steps as advised by GitHub for Enterprise as follows. //Create a folder $ mkdir actions-runner && cd actions-runner // Download the latest runner package $ curl -O -L…
0
votes
1 answer

Self Hosted Github Actions with local services (without containers)

I have this simple GitHub actions workflow on my self hosted Github Actions runner, running on MacOS: name: "My Tests" on: [push, pull_request] jobs: test: runs-on: my-worker env: RAILS_ENV: test ImageOS: macos1015 steps: …
Hackeron
  • 616
  • 7
  • 14
1 2 3
8 9