Skip to content

Instantly share code, notes, and snippets.

@KaraAJC
Created August 9, 2018 13:40
Show Gist options
  • Save KaraAJC/f65984e2852676fccb21005f4b91e33d to your computer and use it in GitHub Desktop.
Save KaraAJC/f65984e2852676fccb21005f4b91e33d to your computer and use it in GitHub Desktop.
Circle CI 2.0 Config Annotated
version: 2 # Indicates what version of CircleCI to use
jobs: # A collection of steps. Each job must declare an executor (Docker, Machine, or macos)
<job_name>: # Nesting for each build job, if only one, must be "build", otherwise can be named uniquely.
parallelism: 1 # Number of threads to start running steps for the job in parallel
docker / machine / macos # executor, or the place where steps occur (WE USE DOCKER)
environment: # Environment variables to be used
EXAMPLE_ENV_NAME: example_value
working_directory: ~/project # The location steps will be run in.
shell: #
branches
resource_class
steps
run
Default shell options
Background commands
Shorthand syntax
The when Attribute
Example
checkout
setup_remote_docker
save_cache
Example
restore_cache
Example
deploy
Example
store_artifacts
Example
store_test_results
Example
persist_to_workspace
Example for root Key
Example for paths Key
attach_workspace
Example
add_ssh_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment