Skip to content

bgmorton/circleci-shared-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sharing Data Between Local and Cloud Environments Using CircleCI Workspaces

This repository demonstrates how you can work on data stored locally in cloud CI/CD environments using CircleCI's shared workspaces functionality.

In the example CircleCI configuration, data is created on a self-hosted runner, persisted to a workspace, loaded in a cloud execution environment, and then checked to confirm that the transfer was successful.

How to run this example

Everything in this example is done within the CircleCI configuration file. The data used to demonstrate persisting and loading data between jobs and environments is all generated using Bash commands defined in the configuration file.

To run this example, you'll need to fork this repository and create a CircleCI project from it.

Then, you will need to update the RUNNER_NAMESPACE/RUNNER_RESOURCE_CLASS in the included .circleci/config.yml to match the details provided after setting up your own self-hosted runner. This file contains the complete job and workflow definitions.

Notes on where persisted data should be stored

Because CircleCI isn't guaranteed control or access to directories outside of the configured working directory we recommend that workspaces be mounted and created within the working directory of the job. Workspaces are not intended for long term storage - only for persisting data between jobs - so make sure you store any data you want kept after your workflow ends outside of your CI/CD infrastructure.

You should also keep in mind potential usage limits if you are moving large amounts of data, and optimize the data you are persisting.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published