Questions tagged [github]

For questions about setup, configuration, and usage related to GitHub, a web-based hosting service for software development projects using Git.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

Jenkins and Kubernetes Design Involving GitHub

I am new to DevOps and am currently designing a CI/CD pipeline that involves integrating GitHub webhooks with Jenkins in a Kubernetes environment, and I would like to see whether this is feasible or ...
1
vote
1answer
38 views

How CircleCI, Terraform and AWS should interact in CI/CD Pipeline

I'm new to devops and I'm have a hard time finding resources to help me with this question. My Goal is to have an automated CI/CD pipeline to launch my project. Basically I have a GitHub repo with a ...
0
votes
1answer
44 views

How can I use a buildah script for image generation using GitHub Actions?

Buildah scripts typically use shell. You can see an example of a script here, #!/bin/sh ctr=$(buildah from alpine:3) buildah commit "$ctr" myAlpineImage Let's say I have such a shell script ...
1
vote
1answer
407 views

Jenkins return “Error validating repository information. Credentials ok.” when validating repo url using Github App authentication

This is the error shown in UI Error validating repository information. Credentials ok. java.io.FileNotFoundException: https://api.github.com/repos/xxxxx/xxxxxxxx at org.kohsuke.github.extras....
2
votes
1answer
486 views

How do i notify GitHub pull request for each stage of a parallel Jenkins pipeline?

We have a parallel Jenkins pipeline script which deploy and run three kind of tests in parallel. We have to notify the status of each stage to GitHub pull request. Can anyone help me to get this? def ...
1
vote
0answers
57 views

Monorepo manifests image tag replacement in Github Actions

I have a mono repo with NodeJS app (or better said, components of an app). There are 3 apps in the repo, each has its own directory and Dockerfile: /core /worker /frontend There’s also /deployments ...
1
vote
0answers
15 views

Define a repo logo via terraform github_repository

Is there a way to give my terraformed github_repository a custom logo? The doc doesn't have a field for it, but is there an undocumented feature? Branding is important!
1
vote
1answer
276 views

How to add label to Pull Request via Github API?

According to GitHub API user can add label to an issue using this POST request. I tried using this request but with PR number instead to automatically set label on PR. Here is the function I wrote: ...
2
votes
1answer
439 views

Does GitHub support VFS for Git?

NOTES: I really hope that this question hasn't been asked before and as far as I know, only Azure DevOps Service (Azure DevOps on cloud) and Azure DevOps Server 2019 (Azure DevOps on-premise) fully ...
0
votes
1answer
111 views

Deploy Docker Compose from different repositories

I have 3 separate repositories, which contains API, web app, and Admin projects. All 3 runs on a Digital Ocean docker machine, and I deploy the 3 using docker-compose (I want to keep things simple). ...
0
votes
1answer
26 views

How to deploy static website from public repo via Github Actions to private web server

I like to start an open-source project via Github where topics (markdown pages) can be created from the community. Via PR the changes get merged to the main repo and then it triggers a Github Action ...
0
votes
1answer
17 views

iptables rules to permit GitHub Actions from breaking (chains default to DROP)

Assuming my iptables rules default to DROP on the INPUT and OUTPUT chains, what is the bare minimum set of rules that I must add to my chains to prevent a script running in GitHub Actions from ...
2
votes
2answers
1k views

GitHub Payload in Jenkins

I'm using the GitHub plugin with Jenkins, and I'm trying to figure out how I can access the webhook payload. I'm aware that the Generic Webhook Trigger has this ability, as well as the GitHub Pull ...
2
votes
1answer
49 views

Pass information between Jenkins Job builds

Please excuse my non-fluent terminology.. There is a Jenkins server, master and a few slaves, there is a pipeline job.. let's call it playground I run the job once, I want to save some data somewhere. ...
1
vote
0answers
19 views

How can I configure Jenkins pull request builder to run tests on Github dependabot PRs

Our Github project repository is configured to receive security PRs from dependabot, and we get them periodically. We are using Jenkins with Build Triggers so that when a user comments /test in a PR ...
7
votes
2answers
6k views

Artifactory vs Git for Infrastructure Version Control / Configuration Management

I'm trying to understand the difference between managing configuration files for the purposes of simplifying automated deployment. We have 5 environments to build. So far 2 have been built with no ...
0
votes
0answers
53 views

Deploying angular app to Azure with Github Actions failed. package.json not found

I am trying to deploy an Angular(10) WebApp to Azure with CI/CD using the Github Actions but I get an error saying the package.json cannot be found while running the npm install command. This is my ...
4
votes
1answer
209 views

node js deployment on production server

I wanted to know standard process to deploy nodejs app on production. As of now I am following the process as below Pull the source code git pull git_url Install npm dependencies npm install ...
0
votes
2answers
259 views

trigger jenkins jobs only when a specific branch is updated

I require a setup in jenkins, which enables me to trigger a jenkins job based on a push event to a specific branch in github. tried so many methods neither worked.
0
votes
1answer
15 views

How to run multiple windows in cmd [closed]

Wondering if possible to run multiple windows in command script. I have a nose.js file that automates an online process and wish to run it once in cmd so it has multiple windows doing the same thing ...
1
vote
1answer
422 views

SSH connection to jenkins server

I have a absh script which connects and exexutes programs from my local to remote server and now this should be executed from jenkins build so for this jenkins is taking continous changes from git for ...
7
votes
1answer
141 views

How to have jenkins add a review to a pull request

I have a Jenkins instance, with credentials for a "robot" github account, which we use to interact with the GitHub API as a team. Typically, jobs are defined as declarative pipelines. I am ...
1
vote
0answers
34 views

How can i deploy docker image into kubernetes cluster using Jenkins single job run

Certificate will be generated by a tool Jenkins instance installed. Need to automate certificate renewal process for kubernetes cluster.
2
votes
1answer
2k views

GitHub Actions Runner execute commands with sudo GitHub Actions

I have a GitHub action set on self hosted Ubuntu VPS on Linode. I ran sudo ./svc.sh install and then ./svc.sh start. The runner is up and working but I have a command in my yaml file that needs to run ...
2
votes
1answer
92 views

How to specify 'os' for free gitlab runners ('runs-on' equivalent)

How can I specify the operating system in the .gitlab-ci file to indicate which underlying OS on which the gitlab-runner should be running when using the 2,000 minutes of free execution in with gitlab....
1
vote
1answer
60 views

Github Actions Last Build API

I'm looking for an option similar to Jenkins where I can view the last build, last successful build, last failed build, etc. with a simple api call. The Jenkins example would be: jenkins_url + /job/${...
1
vote
0answers
78 views

Lock down Kubernetes cluster to Github-hosted runners (GH Actions)?

After building a new container image in a GitHub Actions workflow, I would like to deploy it to a Kubernetes cluster (hosted in AKS) via the k8s-deploy action. This requires the cluster to be ...
1
vote
1answer
2k views

How to determine if a Jenkins build is triggered by a Pull Request merged to Master

I think i've scoured every post on this topic but haven't found my specific scenario. (Maybe that means I'm building the wrong thing OR i've built something unique and new? The former is far more ...
3
votes
1answer
369 views

How to create GitHub Actions for unit testing in .NET projects?

Could You help me? I use NUnit framework to test my .NET project. And I want to run my tests via GitHub Actions. What should be included in the assembly of my project? Maybe there are some standard ...
1
vote
1answer
42 views

How to protect secrets whilst enabling the ability to amend a pipeline

I'm writing a CI pipeline using GitHub Actions. The pipeline will build a Docker image, which it will then push to our Docker repository (AWS ECR). In order to talk to ECR, we'll need to provide a ...
2
votes
1answer
53 views

Create pull request for docker dependency package if outdated

Platform: GitHub CI/CD: GitHub Actions Additional technologies: Docker with Ubuntu base image I'm creating a Dockerfile and I need to install a package (such as Terraform). Every time the '...
1
vote
0answers
13 views

How do I add my own package to a GitHub workflow?

I am trying to use the basic .NET Core Github workflow as shown here, but I am having trouble with a GitHub package I created. When the workflow gets to the Install Depedencies which performs a donet ...
1
vote
1answer
19 views

Is it possible to set role in FreeIPA to use for applications as Jenkins, Github?

LDAP in FreeIPA, it can create groups, roles and set permissions. Applications such as Jenkins, Github also has roles feature. 2 questions: Can roles feature be used in every application? (At least ...
11
votes
2answers
1k views

Is it possible to autodeploy on every commit in a specific branch using Travis CI and GitHub?

I'd like to deploy files using Travis CI and it only works for a tagged commit. When committing to the branch, there is a warning: Skipping a deployment with the releases provider because this is ...
1
vote
0answers
25 views

Trigger SaaS CI Build (i.e. CircleCI, AppVeyor or Travis) based upon a GitHub Release of a 3ʳᵈ Party Repository [closed]

I want to automate the build of a Chocolatey package every time an author creates a new GitHub release. The specific example I am talking about is the HIBPOfflineCheck plugin for KeyPass2, but it ...
1
vote
1answer
33 views

What is the name of Jenkins plugin for GitHub plugin configuration?

We need below plugin in Jenkins: Currently I have installed below list of plugins: git:latest git-client:latest git-server:latest github:latest github-api:latest github-branch-source:latest Am ...
10
votes
5answers
4k views

What is self hosted version control system?

What is self hosted version control system and how is it different from github? I mean if I use self-hosted VCS then where does my code go? I mean: does it get uploaded to the server, or it is saved ...
11
votes
1answer
2k views

How do I configure Travis CI build testing for a Java Eclipse project?

I have an Eclipse Java project on GitHub. I would like to set up auto-build testing with Travis CI. However, when I enable build testing for my project, compilation always fails with the following ...
1
vote
1answer
85 views

How to keep polling GitHub repository and get commits by it's messages on a regular interval using Jenkins?

I need to know how to write a Jenkins job which polls a GitHub repository continuously and send an email of commits made to that repo.
2
votes
0answers
43 views

Jenkins GitHub Organization Metrics [closed]

I am using Jenkins with the GitHub Organization item option. On Jenkins with freestyle projects or others I am able to get build metrics: success, failure, date, node and so forth. On the GitHub ...
1
vote
1answer
30 views

git - develop base and extended feature - commits in base should reflect in extended in pull

Hie I am working around in git to achieve something like mentioned below. Imagine there is a Big feature which is going to develop - since it's very big they have split into core feature and an ...
0
votes
2answers
346 views

Automate creation of branch + pull-request

I have a repository (call it repo-X) of shell.nix files that define development environments for a number of separate projects (call them project-A, project-B). When one of the projects releases a ...
-1
votes
1answer
345 views

Restore Github organization account

Organization's Github account was deleted but there is backup of all the repos on hard disk. So will creating new repo of same names and then pushing the code restore the code base ? (The account was ...
4
votes
3answers
215 views

How to automatically publish git releases/comments to the site?

Sorry if title isn't correct. I'm trying to figure out what to search for on this matter. I'm looking for the easiest way to automatically have my semantic versioning and commits visible on my site ...
7
votes
3answers
323 views

When your micro service in production needs a secret, where is the secret stored and retrieved from?

The context of the question is Secrets management. How do you manage storing and retrieving secrets for your micro service which is in production?
0
votes
1answer
577 views

How to get Github username variable in Azure DevOps build pipeline?

I have an Azure DevOps pipeline build configuration which builds automatically with the master branch. I want to access the GitHub user or username who committed last. If I access variables $(Build....
1
vote
1answer
584 views

How should I deploy my projects using Docker, Git and VPS?

I have a VPS and am able to connect trough ssh using Terminal. Every project I have are dockerized and have github repositories. Since I am new to deployments so far my deployment process is manual: $...
1
vote
1answer
83 views

TravisCI did not run after adding more configuration to .travis.yml file

I added some AWS keys to my .travis.yml file so that it would deploy my application over to ElasticBeanstalk, but after I committed the changes to the file and pushed to master, nothing happened. I ...
0
votes
2answers
354 views

Connecting GitHub to Jenkins running on docker toolbox

Started to learn DevOps 3 days ago, so I have a lot to learn! I have a jenkins running on docker toolbox container and I can access it via 192.168.99.100:8080. I configured a job and managed to use "...
2
votes
1answer
115 views

Github rest api post label gives error for array input

We are hosting GitHub enterprise for our development. I am able to access the reset api and create jira, create PR etc. When I try to add label to my PR, it gives error for array. curl -X POST -u ...