Skip to main content

Questions tagged [cicd]

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

Filter by
Sorted by
Tagged with
32 votes
6 answers
23k views

Module '"buffer"' has no exported member 'Blob'

Have anyone been in this situation before ? I run my code with CI/CD after nest build, it gives me error : node_modules/@types/superagent/index.d.ts:23:10 - error TS2305: Module '"buffer"' ...
ninoorta's user avatar
  • 890
27 votes
4 answers
32k views

Getting docker-compose TypeError: kwargs_from_env() got an unexpected keyword argument 'ssl_version' in GitLab

I'm using GitLab CICD, in docker-test stage as defined docker_test: image: docker:stable services: - docker:stable-dind stage: docker-test ... yesterday worked fine, but today - GitLab pipeline '...
Al Schack's user avatar
  • 329
25 votes
1 answer
56k views

If or condition in Github Actions

I've been trying to build a CICD pipeline in Github actions and we're not able to process if and or conditions in the same. below is the example of our code snippet, name: Build Non prod needs:...
Sam-Sundar's user avatar
24 votes
1 answer
6k views

Flake8 Error code '#' supplied to 'ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$'

I met this issue while running git push. $ flake8 --config setup.cfg Traceback (most recent call last): File "/usr/local/bin/flake8", line 8, in <module> sys.exit(main()) File &...
taichi_tiger's user avatar
24 votes
1 answer
13k views

How to always disable/skip a job in Github actions? (Not step/action)

I have the following workflow: name: CICD # ... jobs: CI: uses: ... CD: needs: [CI] uses: ... I have encountered an issue that needs me to temporally disable the CD job that uses ...
u-ways's user avatar
  • 7,224
22 votes
5 answers
46k views

Gitlab CI CD variable are not getting injected while running gitlab pipeline

I am running the below code section in gitlab-ci.yml file: script: - pip install --upgrade pip - cd ./TestAutomation - pip install -r ./requirements.txt Below are the keys and values. So I have to ...
simond's user avatar
  • 744
15 votes
2 answers
5k views

Check if we're in a GitHub Action / Travis CI / Circle CI etc. testing environment

I would like to programmatically determine if a particular Python script is run a testing environment such as GitHub action Travis CI Circle CI etc. I realize that this will require some heuristics, ...
Nico Schlömer's user avatar
14 votes
6 answers
24k views

GitHub Actions: How to view inputs for workflow_dispatch?

My idea here is to write my inputs from workflow_dispatch on each pipeline run. . For example, in Bitbucket pipelines input parameters shown after custom - Is there a way to do something similar for ...
voralexan's user avatar
  • 161
14 votes
1 answer
12k views

DevOps CICD - Parallel stages Deployment

I have a new release pipeline contains 75 stages, when I create release each one of the stages take in average 5 minutes to complete deployment process then move to next one, that means it needs ...
alhassan ali's user avatar
14 votes
3 answers
25k views

Gitlab Runner Docker login not working error during connect: Post http://docker:2375/v1.40/auth: dial tcp: lookup docker on 67.207.67.3:53

I am using docker executor on gitlab runner as an image I am using docker:stable I am getting this error: $ docker login gitlab.mydomain.com:5050 -u myusername-p mytoken WARNING! Using --password via ...
Sherzod's user avatar
  • 331
13 votes
2 answers
9k views

Jest issue. FakeTimers: clearTimeout was invoked to clear a native timer instead of one created by this library

After the update of Node.js from version 14 to version 16, we've got a lot of failed tests on bitbucket CI/CD pipelines. Locally tests pass. Seems like the problem in timers, cause the first error ...
Alex Nepsha's user avatar
13 votes
3 answers
31k views

Gitlab CI/CD fails while "Cleaning up project directory and file based variables" with "ERROR: Job failed: exit code 1"

My gitlab pipeline which has been running for nearly six months is now failing unexpectedly. Every line prior runs successfully and then this happens: Setting up curl (7.52.1-5+deb9u16) ... $ curl -s ...
SlugQ's user avatar
  • 131
11 votes
2 answers
18k views

Azure Devops pipelines to trigger ONLY on Merge

I'm looking on a way to trigger a Azure pipeline ONLY on successful (or attempted) pull request merge. Now I have : trigger: branches: include: - DEV steps: - script: FOO But this runs EVERY ...
David Muñoz Tord's user avatar
11 votes
2 answers
14k views

reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps

reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps name: HelloWorld on: workflow_dispatch: jobs: checkout: runs-on: windows-latest steps: - ...
wehelpdox's user avatar
  • 527
11 votes
3 answers
21k views

Why does Azure Pipelines say "The environment does not exist or has not been authorized for use"?

In Azure Pipelines YAML, you can specify an environment for a job to run in. jobs: - deployment: Deploy displayName: Deploy environment: $(environment) Passing a new value to the ...
Rachel's user avatar
  • 1,104
11 votes
1 answer
11k views

How to install docker on GitHub Actions

What is the official / recommended way to install Docker on GitHub Actions? In particular I need to run a custom script on GitHub Actions that, among other tasks, calls docker build and docker push. I ...
collimarco's user avatar
10 votes
7 answers
3k views

firebase deploy error, Error: Failed to list functions for (project name)

I am hosting my web application in Firebase and I have been deploying it with Gitlab CI/CD and it has been working just fine! But today for some reason I am getting this error when the pipeline is ...
Ahmed's user avatar
  • 561
10 votes
2 answers
15k views

Does "Allow access to this project with a CI_JOB_TOKEN" in GitLab work between private repositories?

I am part of a private group (our team in our department). All underlying projects and subgroups can only be private (this is how GitLab works) and we all have at least Report-level access to those. ...
rbaleksandar's user avatar
  • 9,334
9 votes
1 answer
13k views

GitHub Actions Upload Artifact not finding provided path from npm run build

I'm trying to set up a react website using CICD principles. I can run it locally, use 'npm run build' to get a build folder, and the website works fine when I manually push the files to S3. However, ...
Michael Albert's user avatar
9 votes
1 answer
3k views

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 ...
sjaakoil's user avatar
  • 121
9 votes
1 answer
10k views

Failed to check the resource group status: 403 while deploying ARM template using CD pipeline through service principal/connection

While deploying Azure Data Factory's ARM template through service principal, I am getting below error: [error]Failed to check the resource group status. Error: {"statusCode":403}. Is it a ...
Aniket Karajgikar's user avatar
9 votes
2 answers
1k views

How to make GitHub Actions safely access Secrets for PRs created from forks?

I have a public repository that runs end-to-end tests. These tests require secrets that are stored in GitHub. The corresponding workflow yaml file has pull_request entry as follows: on: pull_request:...
Sasha Shpota's user avatar
9 votes
1 answer
2k views

How return artifact from Child Job to Parent pipeline?

Use trigger for dynamic select test job prepare_test: image: $CI_REGISTRY/platform/docker-images/vault:1.8 variables: CONTEXT_TEST: | include: # PRODUCT - project: '...
Nikolay Baranenko's user avatar
9 votes
0 answers
384 views

Deploying Prisma to database unaccessible by Github Actions

I have a NodeJS backend which relies on Prisma models, which I want to deploy to my production database. My CI/CD pipeline looks as follows: Github Actions builds the code using webpack, uploads the ...
user274595's user avatar
8 votes
1 answer
2k views

Build works on local but fails on codemagic | Execution failed for task ':app:stripDebugDebugSymbols'

I'm trying to implement a continuous deployment system to build my app and deploy to Google Play using codemagic. Doing a build works fine locally but fails remotely on codemagic. Error summary: ...
eduinvestor's user avatar
8 votes
2 answers
8k views

PNPM Github actions flow

I just moved my project from npm and lerna to pnpm but now when using GitHub actions I get the following error "line 1: pnpm: command not found" can someone suggest how the .yml file should ...
Hamzah Hameed's user avatar
8 votes
2 answers
10k views

Android, Azure Devops geting error while run pipeline ##[error]Error: The process '/Users/runner/work/1/s/gradlew' failed with exit code 1

Android, Azure Devops geting error while run pipeline ##[error]Error: The process '/Users/runner/work/1/s/gradlew' failed with exit code 1 At locale system everything working apk generated but when ...
Rahul Mishra's user avatar
  • 1,449
8 votes
1 answer
11k views

GitFlow: How to maintain previous releases?

I am currently working on a workflow for my team. A suggestion we received was to use the GitFlow scheme. This scheme can be put on a chart as follow: However, I have one question about how to manage ...
Milan's user avatar
  • 1,669
7 votes
3 answers
11k views

Preparation failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock

Trying to transform a project in gitlab to docker image. The gitlab is selfhosted. This is the error I get: Running with gitlab-runner 13.12.0 (7a6612da) on test -KnwQXuT Preparing the "docker&...
SerCio's user avatar
  • 145
7 votes
4 answers
16k views

Detected dubious ownership in repository GITLAB CI/CD

I am facing this issue during try to deploy script with gitlab ci/cd: Initialized empty Git repository in C:/builds/Tri.BuiV/test-gitlab-cicd/.git/ fatal: detected dubious ownership in repository at '...
Bùi Văn Trí's user avatar
7 votes
1 answer
23k views

"Only" or "rules" keywords weirdly remove jobs from the CI pipeline

I am trying to use "rules" and "only" keywords to define my pipeline behaviors between merge requests, pushes into dev branch and pushes into master branch. I noticed several weird ...
Bibimrlt's user avatar
  • 178
7 votes
2 answers
11k views

How to pass a Github Secret as Environment Variable to Docker?

I'm getting started with CI/CD and Docker and i wanted to pass a connection string to docker in my workflow file. deploy: runs-on: ubuntu-latest needs: publish steps: - name: deploy to ...
Jasper123pyah's user avatar
7 votes
1 answer
5k views

What's the difference between buildspec, appspec, and rolling my own AMI?

I'm fairly confused about how the buildspec.yml and the appspec.yml files differ from one another, aside from structure. It doesn't seem like the phase commands from my buildspec have much effect on ...
d8aninja's user avatar
  • 3,495
7 votes
2 answers
7k views

Getting `Argument list too long` in GitHub Actions

I am following HashiCorp's learning guide on how to set up GitHub Actions and terraform. All is running great besides the step to update the PR with the Terraform Plan. I am hitting the following ...
Zambozo's user avatar
  • 476
7 votes
1 answer
502 views

Error xcodebuild NSFileHandle couldn't write. Exception: *** -[_NSStdIOFileHandle writeData:]: Broken pipe while generate Apollo GraphQL API

Helpppp ! I just want to get my pipeline run successfully T.T Anyone can help me here~ Situation: I am integrating Apollo client in my iOS project and following the instruction provided by official ...
janice chau's user avatar
7 votes
0 answers
3k views

When am I try to reuse PNPM store, I getting 'cross-device link not permitted' in Docker build on GitLab CI

I'm trying to reuse pnpm store with docker buildkit inline cache. It is working fine, when I'm doing local build but on gitlab ci it throw cross-device link not permitted error. Error ... #12 2.257  ...
xeon's user avatar
  • 71
7 votes
0 answers
2k views

AWS CodeCommit does support Git LFS?

I have existing project repo in gitlab. Since the gitlab is running in the server, we have the lfs objects in certain directory. My Doubt is AWS Codecommit does not have seperate server to store any ...
Manoj 's user avatar
  • 83
7 votes
1 answer
2k views

how to access environment variables from self hosted runner in github action

I am running EC2 as self hosted runner. I have exported AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to the EC2, and I can see that they are set with printenv command. Reason for doing this is that I ...
shashank patel's user avatar
6 votes
3 answers
5k views

Port forwarding in CICD (Github Actions)

I want to run db migrations in Github Actions. The DB is behind a bastion. My solution was to forward Postgres port 5432 to the db host through the bastion. I tried below script but does not seem to ...
Asur's user avatar
  • 1,987
6 votes
2 answers
9k views

get logs for init container post job completion

We have a multi pod container which consists of 2 pods. init container runs first and the actual container run. recently our init container job are failing due to which our deployment is getting ...
Ganesh's user avatar
  • 71
6 votes
1 answer
10k views

Gitlab CI - not supported: outside build directory

I have a problem with saving the artifact. The project is divided into 3 modules, one of them is saved and the other two are not. Clonning project: Cloning into '/home/gitlab-runner/builds/Gso-uWvA/0/...
Radek's user avatar
  • 81
6 votes
2 answers
4k views

Secret variables with a dollar sign are not correctly set

when trying to use a secret variable with a value containing dollar sign on gitlab-ci secret variables it's not got variable value correctly.
javidasd's user avatar
  • 1,282
6 votes
2 answers
5k views

Is there a way to pre-run tests on the would-be merge commit, if branch were merged, before merge?

We are automatically running tests on feature branches. After the feature is complete and tests pass, it is merged into the main branch. But now we have to wait for tests to run on master, before ...
B Seven's user avatar
  • 45.5k
6 votes
2 answers
567 views

Faraday::Connection without adapter has been made. CICD on Gitlab

everything was going well, before this morning, I'm totally new to cicd and things like that so I write this to deploy my app to heroku `'API deploy': stage: deploy back image: ruby:latest ...
Beatles BOB's user avatar
6 votes
3 answers
31k views

gitlab job failed - image pull failed

I am trying to do docker scan by using Trivy and integrating it in GitLab the pipeline is passed. However the job is failed, not sure why the job is failed. the docker image is valid. updated new ...
user2201789's user avatar
  • 1,203
6 votes
4 answers
2k views

Bitbucket pipeline err

getting the below error in my pipeline. Can anyone help me on this ? Am trying the deploy my ecs service via bitbucket pipelines but facing this error. I tried updating docker, pip, docker-compose ...
Fazalulla's user avatar
  • 103
6 votes
2 answers
996 views

Jenkins not deploying the latest github commit code

I'm trying to get Jenkins to deploy the latest code from github branch to my app server. When I push to my release branch, however, the latest commit code doesn't get deployed. Jenkins seems to deploy ...
eia92's user avatar
  • 95
6 votes
2 answers
3k views

How can i get the date of a commit in github actions workflow

I would like to know if there is any way to get the date of a commit through an environment variable or something to be able to use it within github actions.
Fran Cirone's user avatar
6 votes
0 answers
2k views

How to save build logs from Bitbucket Pipelines

Currently, the way I have my pipelines setup is having each step run on 'self.hosted' runners. I do it this way so I don't have to spend Bitbucket build minutes. Every time the pipeline runs, I can ...
Ethan Chen's user avatar
5 votes
3 answers
3k views

Azure Data Factory CI npm validate step suddenly crashing

We've been using the "new" CICD setup for Azure Data Factory as descibed by the documentation page: https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-delivery-...
mathisre's user avatar

1
2 3 4 5
52