Use for questions related to practices of CICD (Continuous Integration and Continuous Delivery or Continuous Deployment) and its related tools.
Questions tagged [cicd]
2046 questions
2
votes
1 answer
Github actions - How to get a build number that starts from 1 in each branch
Suppose I have these branches:
main
feature1
feature2
In my github actions I need to know what is number of times I have pushed into a branch or I have manually triggered the actions on that branch
With ${{ github.run_attempt }}:
each time I push…

Amin Ba
- 1,603
- 1
- 13
- 38
2
votes
1 answer
Typescript eslint Parsing error: The keyword 'import' is reserved
I have a CDK application written in typescript. Locally when I run npm run eslint there are no errors.
But when the same thing is run in gitlab pipeline I get this error
1:1 error Parsing error: The keyword 'import' is reserved
here is my…

Jatin Mehrotra
- 9,286
- 4
- 28
- 67
2
votes
2 answers
Browser running in docker fails to load (some) JavaScript from webpage
So the problem is this:
When opening some websites (e.g. https://iamstripes.com - most of the urls load correctly, this is a example that doesn't) in a docker image, the webpage is not rendered correctly and clearly there is some JavaScript missing…

Claudio Batista
- 286
- 1
- 9
2
votes
2 answers
AWS CodeBuild get Github OAuth token
My use-case: I have private GitHub repository and private GitHub NPM registry for dependencies. Repository imports dependencies from private registries. For GitHub actions CI pipeline, GitHub generates a temporary token, which could be used to…

Kirill
- 7,580
- 6
- 44
- 95
2
votes
1 answer
Flutter web CICD keeps failing on elastic beanstalk docker
I have been trying to deploy my application on elastic beanstalk but it keeps failing. I tried to to deploy it on AWS ECR + Fargate and GCP Cloud Run and it works without any problem. I have also tried to set it to immutable and still fail.
Here's…

xreyc
- 203
- 2
- 8
2
votes
1 answer
Firebase - Invalid project selection
I'm using Firebase Cloud Functions for a project and I would like to automatically deploy them when I push in a specific branch on GitHub. Here is my current workflow :
name: Dev deploy
on:
workflow_dispatch:
push:
branches:
-…

Raida
- 1,206
- 5
- 17
2
votes
2 answers
Permission denied with github action and terraform
I have a problem with github action and terraform.
I have fives repository on my github account. I'm able to clone/push/pull them from my computer thanks to my ssh key.
On my main.tf file, I've created some module when the source are my other…

Morph59
- 33
- 3
2
votes
0 answers
Laravel 10 CI/CD test fails with SQLSTATE[HY000] [2002] No such file or directory
I want to make an automation for the test check when I push into main branches
I've created this github workflow
name: Run tests
on:
push:
branches:
- master
- develop
jobs:
tests:
name: Run tests
runs-on:…

Badr
- 21
- 1
2
votes
2 answers
How can I build a pre-configured distributable Raspberry Pi image?
I want to build a Raspberry Pi image configured with a customised set of packages and configuration ready to image and distribute to push onto a SD card and boot from.
i.e. I want to automate the manual process of:
Download Raspberry Pi…

Mat
- 82,161
- 34
- 89
- 109
2
votes
0 answers
Why can't my Github Actions pipeline run gcloud commands properly trough SSH?
I'd like to automate the deployment of Docker containers to a VPS,
using gcloud auth configure-docker to set the proper docker credentials on the VPS.
This works fine when I'm
A: logged in as root in the online console in Webmin
B: logged in as…

Bence Mányoki
- 257
- 1
- 8
2
votes
0 answers
Does GitLab CI rules reference follow `and` or `or` condition?
I have some rules for example:
.run_for_apple:
- if: '$APPLE == "apple"'
.run_for_orange:
- if: '$ORANGE == "orange"'
I wonder if in my job as below:
job_one:
....
rules:
- !reference [.run_for_apple]
- !reference [.run_for_orange]
Does…

Jane
- 151
- 3
- 12
2
votes
1 answer
Why does a triggered building always need approval or decline in Drone?
I had created a new gitlab project copied from an existed project. After i commit sth to the new project, Drone successfully received the event, and a new building triggered, but always need confirm, approve or decline.
Drone Project…

Yu Fang Cheng
- 21
- 4
2
votes
1 answer
Excluding gitlab-ci.yml from merge-request
I have 2 branches: stage and master - and each of them has its own .gitlab-ci.yml with different scripts. How is it possible to exclude these files from merge-request, so that they remain unique for each of the branches?
i tried with gitattributes…

andrey
- 23
- 4
2
votes
1 answer
Why is my pipeline failing? error: option '--token ' argument missing
Im trying to setup a CI/CD pipeline but it keeps failing for my react app.
here is the script:
image: node:latest
.deploy: &deploy
- npm install -g firebase-tools
- firebase use $FIREBASE_PROJECT_ID --token $FIREBASE_TOKEN
- yarn
- yarn…

Grant Solomons
- 181
- 1
- 1
- 11
2
votes
0 answers
How to integrate cypress-mochawesome-reporter to Gitlab pages?
How to integrate cypress-mochawesome-reporter to Gitlab pages?
Currently i have this code on my gitci-.yml
stages:
- test
test:
image: cypress/browsers:node18.12.0-chrome107
stage: test
script:
- npm ci
- npm run start:ci &
-…

Noel Dulin
- 321
- 1
- 3
- 12