262 questions
0
votes
0
answers
190
views
Error in CircleCi Integration on symfony app
Problem :
Hello everyone, I have an error in integrating circli on my symfony project. It can't build because there is a problem between composer.lock and composer.json
Project structure:
-root ...
1
vote
1
answer
334
views
How can i stop CircleCi from automatically deleting branches that are deleted from github?
I have a workflow on CircleCi that builds and deploys a branch to AWS when a pull request is open from that branch.
I have a second workflow that tears down the deployed environment when the pull ...
2
votes
1
answer
542
views
CircleCi let only team-leaders team from github to approve a job
I'm trying to add an approval job and I want only users from "team-leaders" groups at GitHub can click the approve.
what I've done so far:
I created a GitHub team - "team-leaders" ...
0
votes
0
answers
159
views
Tests in circleci wont pass after upgrading ruby and heroku to 20 from 18
I am currently working on an app that uses ruby on rails on the backend and react.js on the front end.
Since Heroku 18 is ending, I decided to start the upgrade to Heroku 20 which will be available ...
0
votes
1
answer
936
views
Circle-CI - logic statement in commands with two conditions: equals and matches not working well
I have read https://circleci.com/docs/configuration-reference#logic-statement-examples and I want to had a condition when the tag match a certain pattern to the logic statement:
when << ...
3
votes
1
answer
2k
views
Share a file between two workflows in CircleCI
In our repo build and deploy are two different workflows.
In build we call lerna to check for changed packages and save the output in a file saved to the current workspace.
check_changes:
...
0
votes
1
answer
169
views
Pass cut string into environment variable?
I'm trying to cut my git tag and pass this as an environment variable so other parts of my circle ci build know which directory to look at. How do I go about doing this?
run-terraform:
docker:
...
0
votes
0
answers
113
views
Selenium can't access web server by domain name in CircleCI environment
In CircleCi config, I added my-domain to etc/hosts in-order to access local webserver by domain name.
For example => http://my-domain:3000/some-endpoint
But when I start Selenium-testing using the ...
0
votes
0
answers
206
views
How to detect which gradle project that contains classes that have dependency on an updated class?
For example if I have class A1 in project A, B1 in project B, C1 in project C, and D1 in project D. Both class A1 and C1 have dependency on class D1. When I updated class D1 I want to track which ...
0
votes
1
answer
714
views
Rails not picking up .yaml.erb fixtures?
I'm trying to set up Circle CI for a Rails backend to automate a fair amount of tests, some of the tests are legacy code that uses YAML fixtures with erb tags. I'm using a Ruby 2.6.9, Rails 5.2.6, ...
0
votes
1
answer
1k
views
CircleCI build fails when setting up add_ssh_keys config
We have a repository which now draws from a private repository for a particular component.
A BitBucket SSH key is required to get access to this.
It is a Flutter app and the private repo reference in ...
1
vote
0
answers
381
views
Could not able to SSH/(SCP the file) into local machine from the circle
I’m trying to deploy the jar file after building from circle ci by fetching from one of the Github repo into my local machine. Here are my config file and the steps which I followed.
# Use the latest ...
0
votes
1
answer
187
views
CircleCI: why have two jobs: build and test that aren't DRY?
I was looking at CircleCI's sample config for Ruby on Rails which sets 2 jobs: build and test.
version: 2.1 # Use 2.1 to enable using orbs and other features.
# Declare the orbs that we'll use in our ...
1
vote
1
answer
2k
views
Circleci create environment variable from existing env var
In the circle ci dashboard I set enviornment variables like DEV_USEFUl_API_KEY, PROD_USEFUL_API_KEY. Then in my circleci config file (v2.1) I do this
- run:
name: Run Tests
command: |
if ...
2
votes
0
answers
714
views
CircleCI - speeding up jobs that share a Docker Image
I moved from a single CircleCI job with many steps to 3 different jobs with individual steps.
I like the new set up as Job 2 ( run_script_inside_con ) and Job 3 ( scan_container_with_ ) don't start ...
0
votes
1
answer
92
views
Is it possible to separate environments in circleci between Heruku accounts?
My main idea here is to have two separated environments - one for production and one for staging.
For that purpose, I created two repos on Heroku (I wasn't sure it was possible to make it with one ...
1
vote
1
answer
84
views
Circle CI Docker Image: Php + Java
I found separate Circle CI docker image for Php and Java.
- image: circleci/php:7.2.30
- image: circleci/openjdk:11.0.3-jdk-stretch
And I have run command to use 'java' command and it fails because ...
0
votes
1
answer
1k
views
CircleCI setup with Cypress and React-testing-library
I would like to use CircleCi to run my Cypress and react-testing-library tests because I want to test my react app.
On local env I would run (which work fine):
yarn run test to execute my react-...
0
votes
1
answer
484
views
CircleCI 2.0 Scheduled workflow not running
I have a scheduled workflow that stopped running all of the sudden. Its supposed to run once a week, the last time it ran the config looked like
workflows:
version: 2
commit-workflow:
jobs:
...
0
votes
1
answer
1k
views
Circleci: How to deploy depending on git release(release a tag)
Is there a way to restrict circleci deployment on checkings that have a git release(release a tag)
1
vote
0
answers
453
views
Unable to deploy static website using CircleCI
Summary: I'm trying to automate the deployment of a static site (gatsby) to an S3 bucket using a CircleCI orb, but I keep getting the following error:
#!/bin/bash -eo pipefail
aws configure set ...
5
votes
1
answer
13k
views
How do we conditionally run a CircleCI workflow?
I have followed the guide described in Conditional steps in jobs and conditional workflows and written the below code for my CircleCI pipeline.
version: 2.1
workflows:
version: 2.1
workflowone:
...
3
votes
1
answer
3k
views
How to run an AWS ECS task inside a service of AWS ECS cluster and not ouside the service from Circle CI's "aws-ecs/run-task"
I am using Circle CI to build and push the image to AWS ECR, then use this image to deploy a container(with FARGATE as instance) in a service inside a cluster in AWS ECS. The problem is, the tasks are ...
0
votes
1
answer
2k
views
firebase_app_distribution can not distribute to testers groups on CirclceCI
On firebase console a testers group exists with name and alias, e.g. test-group. I'm distribution with:
firebase_app_distribution(
app: ****,
service_credentials_file: ***,
groups: 'test-...
1
vote
0
answers
333
views
CircleCI 2.0 iOS build stuck at Signing
I am building my React Native iOS app with circleci 2.0, my build is stuck at Signing for about 40 minutes and not moving ahead.
I have my apple id with 2FA so have added ...