Questions tagged [cicd]
Use for questions related to practices of CICD (Continuous Integration and Continuous Delivery or Continuous Deployment) and its related tools.
cicd
2,579
questions
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"' ...
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 '...
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:...
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 &...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
- ...
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 ...
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 ...
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 ...
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. ...
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, ...
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 ...
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 ...
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:...
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: '...
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 ...
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:
...
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 ...
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 ...
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 ...
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&...
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 '...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
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.
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 ...
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
...
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 ...
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 ...
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 ...
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.
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 ...
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-...