Questions tagged [github-actions]

22 questions
17
votes
1 answer

Must not run with sudo while trying to create a runner using github-actions

Hi I am new in github actions and I am trying to create a CICD pipline using Github action. I am using a digital ocean droplet UBUNTU 20.04 as my server and I am trying to create a runner as said in ->settings->actions When I wrote the following…
Riwaj Chalise
  • 285
  • 2
  • 5
  • 8
5
votes
0 answers

GitHub SSH action failing: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

I have recently rented a VPS running CentOS 8. I want to make countinuous deployment from one of my repos, so that when I push to main the repo is updated. I followed this tutorial on a fresh CentOS installation, with the following action (this is…
mianfg
  • 51
  • 1
  • 4
2
votes
1 answer

AWS ECS task definition workflow

I've setup one of my services to be deployed to ECS (EC2). I have the service and task definition configured via terraform and then to deploy I'm using Github actions where it seems I need to define the task definition again. It seems both are…
1
vote
2 answers

How do I add labels to GitHub runners?

I have defined a new github runner. It has a name, and the name automatically becomes a label. I'd like to add another label to this runner, to use when matching a workflow to a runner. "The internet" claims that I can "click the runner in the list,…
Jon Watte
  • 280
1
vote
0 answers

Set GitHub secret keys in bulk – sh file

I’m in the initial stages of building a simple automated deploy pipeline. One of the steps I’d like to implement would be setting the GitHub Actions secrets in bulk, since I have many of them in my project. Note: I’m a newbie in DevOps and bash…
1
vote
1 answer

Ubuntu package revision not found in GitHub actions

I use GitHub actions with an Ubuntu 20.04 runner, and since last Saturday, started getting an error in Github actions log. I had not changed the yml config. The error: Get:79 http://azure.archive.ubuntu.com/ubuntu focal/universe amd64 proj-bin amd64…
culebrón
  • 575
0
votes
1 answer

Context interpolation for env vars with GitHub Action workflow?

Following this article and using this help document, I am trying to get RabbitMQ started as a service for my job. The container starts, but the environment variable interpolation does not appear to be working. Here is my workflow: name: Test &…
neezer
  • 810
0
votes
0 answers

Howto prevent Github Action Runners from creating world-writeable shm sections?

We are running self-hosted gha runners on RHEL 9.4. They are creating a shared memory section with world-writable permissions. I assume that the runners use this to communicate among themselves. The issue is that the lttng-ust-wait-8 section has…
0
votes
0 answers

What does "parallelism" mean for GitHub Runners?

When I configure Github-hosted Runners, there is a "max parallelism" text field. Depending on who I ask and which help page I read, I can interpret this in two different ways: The runner will spin up one "machine" (VM) and up to N jobs can run on…
Jon Watte
  • 280
0
votes
1 answer

Allow user to pull in `www-data` owned folder

I have a github workflow, that runs whenever a branch is merged to main: jobs: deploy: name: Deploy to Production runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v4 - name: SSH into server…
Bird87 ZA
  • 113
  • 1
  • 6
0
votes
1 answer

GitHub action runner with containerd - /var/run/docker.sock not found error

I'm running a GitHub self hosted action runner which uses the docker cli but the host I am running it on is using containerd as the runtime. docker is installed, except there is no active /var/run/docker.sock. How can I fix this so GitHub action…
Justin
  • 5,668
0
votes
1 answer

Set GitHub Actions Secrets on Docker Container Build/Run Command

Set GitHub Actions Secrets on Docker Container Build/Run Command I'm in the early stages of building an automated pipeline. Still in the exploring phase. Right now, I'm struggling with setting the environment variables for the container I'm going to…
0
votes
1 answer

How can I create an ecs service for my deploy

I’m learning CI/CD pipelines and I’ve come up with a question. I have a CloudFormation file that creates some static resources for my app (ECR repository, ECS Cluster and some roles) When creating my deployment pipeline in GitHub Actions I’ve set up…
0
votes
2 answers

Running Nginx in GitHub Action results in 'Permission denied' error

I'm running on ubuntu-2204 in GitHub Action to set up a simple web server using Nginx. I want to use Nginx as a reverse proxy to send requests to the backend PHP-FPM. However, when I set the root directive to $GITHUB_WORKSPACE, it doesn't work as…
Gasol
  • 111
0
votes
1 answer

GCP Function Deployment : Zip file from local build but not Zip File from Github Action

I am trying to have a github action that build a zip file with code function source code and upload it to Google Cloud Storage Then I have a terraform repository that deploy cloud function using this zip file. The thing is that when I zip those file…
1
2