Questions tagged [cicd]

Use for questions related to practices of CICD (Continuous Integration and Continuous Delivery or Continuous Deployment) and its related tools.

2046 questions
4
votes
0 answers

How to protect GitHub secrets in pull request actions from malicious pull requests?

Let's say the integration tests I want to run on every pull requests require an external API authentication secret. See the following example: name: Pull Request Workflow on: pull_request: branches: - main jobs: build: runs-on:…
Ben Hirschberg
  • 1,410
  • 1
  • 12
  • 17
4
votes
2 answers

Set Docker resource limits via gitlab CICD as variables

I'm trying to set some resource limits into a docker container. I'm able to add the below values to a docker-compose.yml file for docker resource limits; resources: limits: cpus: '2' memory: 4GB …
CPdev
  • 375
  • 2
  • 5
  • 20
4
votes
2 answers

Angular v15 npm run test fails in CI/CD machine with error "Uncaught TypeError: __webpack_require__(...).context is not a function"

After updating Angular from v14 to v15, I saw Angular CLI remove lines from the src/test.ts file. The lines were: declare const require: { context(path: string, deep?: boolean, filter?: RegExp): { (id: string): T; keys():…
kana op
  • 61
  • 7
4
votes
1 answer

Xcodebuild Archive Failed with error PhaseScriptExecution Jenkins

I am trying to create iOS archive from jenkins. Whereas the Build PC the Build Command is working fine but when I run from jenkins the same command I get this issue. This is a React Native Project COMMAND: sh 'xcrun xcodebuild archive -workspace…
DropAndTrap
  • 1,538
  • 16
  • 24
4
votes
0 answers

Is there any way to use compose v2 in bitbucket pipeline?

First of all - no, I cannot switch from Bitbucket pipelines to something appropriate, unfortunately, it is direct requirement. [x] I have searched other SO questions and google, the following two questions are related: Bitbucket Pipeline - docker…
STerliakov
  • 4,983
  • 3
  • 15
  • 37
4
votes
3 answers

ArgoCD - what need be done after build a new image

I have deployed the application via ArgoCD successfully, and I can access it via its ingress url The applicaiton uses the image name with latest tag, such as image: /app_1_service:latest I also manage other tags on same of tag…
Bill
  • 2,494
  • 5
  • 26
  • 61
4
votes
0 answers

gitlab-runner: Segmentation Fault? How to solve this?

I have been trying to figure out what's the problem with gitlab-runner,I have installed gitlab-runner on unix. it suddenly shows an error "Segmentation fault (core dump)". I tried to reinstall gitlab-runner, or check status. every command i try then…
4
votes
0 answers

How to create a drop down pipeline variable in codefresh (CI/CD)

I want to use multiple values for a single pipeline variable in codefresh. For example let say the variable name is ENVIRONMENT and it's values can be env1, env2, env3 ... For such variable creating a dropdown list would immensely helpful I went…
Amit Rout
  • 107
  • 1
  • 7
4
votes
0 answers

Best practices for packaging libraries that use cython using poetry

I've always used poetry to develop python packages. Now I want to use Cython in a new project and I'm a little confuse about how to structure de library, whether or not to use a setup.py instead of using poetry at all. I've seen posts (like this)…
Jorge Morgado
  • 1,148
  • 7
  • 23
4
votes
2 answers

merge problem in docker-compose and .gitlab-ci.yml

I'm working on a project that has two branches, develop and production. The .gitlab-ci.yml has two stages on production branch but three different stages on develop branch. Also the docker-compose file is different on this two branches. When I merge…
4
votes
3 answers

Gitlab CI/CD - sending comments/alerts to the gitlab UI?

Currently I have this line in my .gitlab-ci.yml file: if (( $coverage < $MIN_COVERAGE )) ; then echo "$coverage% of code coverage below threshold of $MIN_COVERAGE%" && exit 1 ; else exit 0 ; fi $coverage is the test coverage of the code, determined…
bourdieu
  • 75
  • 5
4
votes
4 answers

deploying on eks via travis ci fails

i am trying to make a cicd pipeline github->travisci->aws eks everything works fine images are posted to dockerhub and all.but when travis is executing kubectl apply -f "the files" it is throwing a error.. error: exec plugin: invalid apiVersion…
4
votes
1 answer

Drone IO Difference between when and trigger?

My need is to run drone build when create a new tag in Gitea. I can see two options there in Drone documentation. Please find below: When when: event: tag branch: master Trigger trigger: branch: - master ref: include: …
Prasanna Kumar J
  • 225
  • 1
  • 13
4
votes
1 answer

Can I schedule only one specific GitLab CI/CD job?

At the moment, I have a couple of CI/CD jobs configured in gitlab-ci.yaml within a pipeline. For instance, I have the build and deploy configured within one branch. One of the jobs is creating a backup. I would like to schedule only the backup job…
sjaakoil
  • 71
  • 3
4
votes
0 answers

Github Actions CI/CD without docker on an -Django-Gunicorn-Nginx

I have a digital ocean server setup with Django-Gunicorn-Nginx. Everything is working as expected but sadly every time I make a code change I have to manually login to my server, pull my changes from github and restart gunicorn. Is it possible to…
cmokVnash
  • 49
  • 1
  • 4