Questions tagged [github-actions]
18 questions
12
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
- 235
- 1
- 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…

user2375592
- 207
- 1
- 3
- 9
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
- 565
- 1
- 4
- 7
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
- 3
- 12
- 29
0
votes
0 answers
How to use github workflow from a different repository?
This is my workflow file, present in the same repository as the source code.
I have my workflow file in same repository where the code is there, Instead I want to keep it in separate repository and use that here. How to do that?
# 64bit…

uday kiran
- 33
- 6
0
votes
0 answers
Passing Variable between GHA steps
I'm trying to pass variables from one steps to another step in github action . Below doesn't work . Is there way to do it ?
jobs:
eks_delete_resources:
runs-on: code-default
defaults:
run:
shell: bash
steps:
-…
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…

Arthur Luiz
- 111
- 3
0
votes
0 answers
GHA worklfow fails when a Postman Collection Run fails (newman)
i'm using newman in github actions workflow to run a postman collection. i need the run results no matter if any number of requests fail. but the github action fails and i can't get them.
- name: Collection_UID
id: collection_UID
…

servusMori
- 1
- 1
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
- 3
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…

Grégory L
- 113
- 4
0
votes
1 answer
How to have a single pipeline run and single commit in github?
In jenkins, we can schedule poll scm to check for every 1 hr, 2hr,etc.
In the meanwhile, even if we add n number of commits, let’s say poll scm is 1 hr
After 1 hr, it will check for latest commits and if any new, it will launch once. If no commits,…

user2331760
- 155
- 4
- 12
0
votes
1 answer
How to deploy site to VPS from Github by SFTP with password (no keys)?
I found many instructions on the net, but all are based on SSH keys. My SSH is based on keys only, but I created another user account just for SFTP with login and password.
I can login to SFTP easilly via FileZilla directly to website directory with…
user951556
0
votes
1 answer
How to set flux to deploy latest image tag for every build?
I have added github actions to build a docker image for every latest commit and push it to our container registry in azure.
We have created yaml files to deploy the docker image to kubernetes on azure.
And deployed flux in to for auto-sync if any…

Sara June
- 451
- 1
- 9
- 28
0
votes
0 answers
Run Github actions workflow ec2 auto scaled servers
Our application is hosted on AWS EC2, we add code updates & fix bugs every few weeks. Our code is on github and github actions does the deployment with automated & manual workflows. We have a good traffic so we have already added 5 servers with load…

MD Nasirul Islam
- 145
- 1
- 12