circleci | CircleCI REST API Ruby Gem | Continous Integration library
kandi X-RAY | circleci Summary
kandi X-RAY | circleci Summary
Circle CI API Wrapper. Requires ruby >= 2.0.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a HTTP client .
- Send the request to the server
- returns true if the response is successful
- Creates a new request
- Setup the HTTP request
- Creates a new HTTP connection
- Returns the parsed body .
- Creates a new HTTP client .
- Upload a private key for this project .
- Sends a private key to the host .
circleci Key Features
circleci Examples and Code Snippets
Community Discussions
Trending Discussions on circleci
QUESTION
I am using circleci to deploy an application, I deploy to both amd and arm architectures so my builds are multi-arch which I have been using docker buildx for. With the new arm support from circleci I was able to cut the time on this process down from sometimes 3 hours using quemu, to around 20 minutes by building both separately in their respective build environments (no need to use quemu when you build on the target arch). What I am running into is that when I run the buildx commands, one build will complete, push it's results to the repository and then the other completes and overwrites the previous. What I am trying to achieve is combining the built images into a single manifest to push together as if I built them at the same time. Is there a way to achieve what I am attempting without getting into direct modification of the manifest files? An example of the commands needed to achieve this would be extremely helpful!
Thanks in advance!
...ANSWER
Answered 2021-Jun-13 at 19:47There are two options I know of.
First, you can have buildx run builds on multiple nodes, one for each platform, rather than using qemu. For that, you would use docker buildx create --append
to add the additional nodes to the builder instance. The downside of this is you'll need the nodes accessible from the node running docker buildx
which likely doesn't apply to ephemeral cloud build environments.
The second option is to use the experimental docker manifest
command. Each builder would push a separate tag. And at the end of all those, you would use docker manifest create
to build a manifest list and docker manifest push
to push that to a registry. Since this is an experimental feature, you'll want to export DOCKER_CLI_EXPERIMENTAL=enabled
to see it in the command line. (You can also modify ~/.docker/config.json
to have an "experimental": "enabled"
entry.)
QUESTION
I want to run Cypress tests on CircleCI for my Nuxt project
What's my problem?In local mode it works fine, but I can't get it to work in CircleCI
I've already tried the CircleCI orb cypress-io / cypress @ 1.28.0
, but just using wait-on
the tests start before the npm run dev
finishes.
ANSWER
Answered 2021-Jun-01 at 19:18I am on the Developer Experience team at Cypress.
We have recently published a guide for CircleCI which details the solution deployed in the Cypress Real World App repo.
QUESTION
In my project, Cypress is taking over 15s to visit a Nuxt page and then run the test
The test is running quickly, but it takes a long time to load the page.
What can I do to reduce the visit time?
What I'm trying to do?I want to run my e2e tests in local mode with MirageJS and in CircleCI too to validate my PRs
DetailsCypress version: 7.4.0
...ANSWER
Answered 2021-Jun-01 at 05:41Normally not. However there is an issue in cypress, since v7.2: https://github.com/cypress-io/cypress/issues/16671
You can try to downgrade your cypress to 7.1 to evaluate if your performance-issue is related to this bug.
QUESTION
I am trying to create a CircleCI pipeline but keep getting this error:
...ANSWER
Answered 2021-Jun-01 at 07:35to what I know, when defining a job, you need to define if it is running inside an specific docker image, inside a macos machine, windows machine or regular ci machine
It seems you want to do regular machine, so you need to do
QUESTION
I updated knex from 0.21 to 0.95 following their migration guide, Now im geting this Error on CI when its running npx knex migrate:latest
ANSWER
Answered 2021-May-31 at 09:06So i was getting this error since Knex 0.95 introduced a new feature https://github.com/knex/knex/pull/4289 so that if an empty array is passed to insert it will throw an error which was not present before
and since we didn't use that table it was empty and this above migration was trying to insert an empty array which was throwing the error on CI so I just basically handled the Exception with a try-catch block and it got resolved
so as a note look at the change logs carefully
QUESTION
I have a Cloud Source Repository where I maintain the code of my python package. I have set up two triggers:
- A trigger that runs on every commit on every branch (this one installs my python package and tests the code.
- A trigger that runs on a pushed git tag (install the package, test, build artifacts, and deploy them to my private pypi repo).
During the second trigger, I want to verify that my Version number matches the git tag. In the setup.py file, I have added the code:
...ANSWER
Answered 2021-May-20 at 07:06The TAG_NAME
is set as substitution variables but not as environment variables
You can do that
QUESTION
I would like to set up github actions in order to perform security scans on docker images. However, the build and push of the image I would like to scan is made by CircleCI. Hence I need to make sure that the images have been properly built and pushed on my repo before performing the security scan.
I know there exists an action to trigger a CircleCI job, but is there any way to trigger the execution of my Github action from Circle CI?
Thank you for the answers or any workaround you could provide :)
...ANSWER
Answered 2021-Apr-30 at 14:56You could use a repository dispatch event from you CircleCI pipeline to start a repository workflow (through CURL or through a script).
In that case, your Github repository workflow file will need a repository_dispatch event to trigger it, to perform your security scan job.
Dispatch Request Example
QUESTION
I've got a Rails 6 project that I am doing by following the book Agile Web Development with Rails 5.1, and I am using Circle CI for the build and tests. I will basically list all my questions at the end of the post.
Below is the part where I install webpacker in my circle.yml
ANSWER
Answered 2021-Apr-21 at 09:06- Yes, you are trying to install webpacker for this project once again when you're running
rails webpacker:install
on the CI machine. - Yes, what you need to run on another machine is
rails assets:precompile
. What it does it compiles all your assets for production, not development use and that's exactly what you'd want on the non-development machine (CI, staging, production).
QUESTION
I am using circle ci to build couple of docker images. The docker image rely on -build-arg my_var=val
. I have modified my circleci job to handle this arg i.e.,
ANSWER
Answered 2021-Apr-08 at 16:54You need to add a parameter to the build_image job
QUESTION
I am new to circleci so not sure how to use an orb. Couldn't find a good example documetation. The orb in question is this https://circleci.com/developer/orbs/orb/ganezasan/auto-cancel-workflow
The idea is that circleci should be able to cancel other josb whose tests are failed. Instead of re-inventing the wheel, i found this orb but couldn't find a sample config.yml file.
How can i use this orb in my existing config.yml file?
...ANSWER
Answered 2021-Apr-08 at 03:42The orb page you linked provides a usage example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install circleci
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page