Questions tagged [circleci-2.0]

Use this tag for questions about the CircleCI 2.0, which went into closed beta in November 2016. For the current version of CircleCI use the [circleci] tag.

Use this tag for questions about CircleCI 2.0, a significant update of Circle CI's Continuous Integration and Deployment Platform. CircleCI 2.0 went into closed beta in November 2016. For the current version of CircleCI, use the tag.

13 questions
12
votes
2 answers

How to run experimental Docker features on CircleCI

When a build is started on CircleCI one of the first things that is done is: Setup a remote Docker engine Specified reusable docker engine, but build has not been whitelisted. Contact CircleCI to be whitelisted Allocating a remote Docker…
030
  • 13,383
  • 17
  • 76
  • 178
8
votes
3 answers

Condition CircleCI build on what part of monorepo changed?

I'm working on a monorepo project that contains a few different subprojects in different languages. Right now I run three different CircleCI "jobs" on each commit. However, each of these packages compile and test themselves independently. Hence I…
6
votes
1 answer

Where does CircleCI-2.0 store the ssh private keys?

Aim To deploy docker container using ansible using CircleCI-2.0. Method A private key has been created and added using the CircleCI-2.0 UI. .circle/config.yml version: 2 jobs: build: docker: - image: ubuntu:xenial working_directory:…
030
  • 13,383
  • 17
  • 76
  • 178
6
votes
1 answer

Six repositories as a single deployment Docker+CircleCI

I need some help and be pointed in the correct direction. I have 6 git repositories that together combine a bigger application (3 Node.js API, 2 React web apps and one repository for Ansible and templates for config files for the other…
user134865
  • 163
  • 4
4
votes
1 answer

CircleCI manually approved Deployment with Rollback

The new CircleCI 2.0 configuration allows to have a step of type approve which waits for user input. Is there some way to not just deploy code using manual stop, but also have a rollback to a previous version based on user input?
Evgeny Zislis
  • 9,023
  • 5
  • 39
  • 72
3
votes
2 answers

Anyone know how to use $CIRCLE_BUILD_NUM across different jobs in CircleCI?

I use $CIRCLE_BUILD_NUM in different jobs in a workflow (but it seems like that get incremented in between jobs of the same workflow)? I did some research and it looks like I can switch to CIRCLE_WORKFLOW_ID which is unique for the workflow but then…
erotsppa
  • 131
  • 2
3
votes
1 answer

How to get other than "" when interpolating {{ .Environment.SOME_VAR }} (with SOME_VAR set) into cache key?

Using this configuration: version: 2 jobs: test: docker: - image: nixorg/nix:circleci environment: NIXPKGS_REV: 3c83ad6ac13b67101cc3e2e07781963a010c1624 steps: - restore_cache: name: Restore Nix Store Paths …
3
votes
1 answer

Keep getting permissions error gcloud.container.clusters.get-credentials

I am trying to integrate CircleCi with gcloud Kubernetes engine. I created a service account with Kubernetes Engine Developer and Storage Admin roles. Created CircleCi yaml file and configured CI. Part of my yaml file includes: docker: …
Naor
  • 141
  • 1
  • 4
2
votes
2 answers

Unable to parse YAML: mapping values are not allowed here

Good morning. I'm migrating from Gitlab to CircleCI and try to map out a simple pipeline ("workflow") that basically should look like this: [build] -> [tests] -> [release*] * only on tags I wasted endless hours literally copy-pasting example…
q9f
  • 123
  • 1
  • 1
  • 6
1
vote
1 answer

Circle ci workflow job stuck in "created" when adding a required step to the workflow

workflows: version: 2 build_deploy_test: jobs: - build: filters: branches: only: - develop - christest: requires: - install filters: …
Chris Stryczynski
  • 483
  • 1
  • 3
  • 15
0
votes
1 answer

Docker not found in circleci config

Why is docker not found? Do I need to use a different docker image than debian:latest? I want the latest debian image so does that mean I need to manually install Docker? orbs: aws-ecr: circleci/aws-ecr@6.2.0 version: 2.1 workflows: # Build…
Catfish
  • 101
  • 1
0
votes
1 answer

CICD with dockerized web app

I am having troubles understanding the following DevOps concept. I have developed a dockerized web app using docker-compose. It is in my local and I can upload it to any cloud service I want and it works fine. The point is that when I try to…
CarlosSR
  • 101
  • 3
0
votes
1 answer

Setting up CircleCI to AWS EC2 for a simple node application deployment

I have a simple node application running on the EC2 instance, everything is working just fine and I want to integrate this application with CircleCI for the continuous deployment. I have been following this article where it says to SSH to the EC2…