CICEE is an opinionated orchestrator of continuous integration processes. CICEE executes commands in a Docker container, using the files in your project repository, and provides a convention-based structure for fulfilling dependencies.
CICEE also provides a continuous integration shell function library to support the use of shell script-based continuous integration workflows.
bash
: bash shelldocker
: Docker command-line interfacedotnet
: .NET SDK (6.x
,7.x
, and8.x
supported)
CICEE users' most common use cases:
- Validating project code, e.g., during a pull request review, consistently on both developer workstations and continuous integration servers.
- Assembling distributable artifacts, e.g., Docker images or NPM packages.
- Running integration tests requiring dependencies, e.g., databases.
- Executing code cleanup, linting, reformatting, or other common development workflows, without prior tool installation.
.NET solution templates are available in the
Cicee.Templates
NuGet package. These templates provide easy templates for repository initialization which follow CICEE conventions.To install/update, execute:
dotnet new install Cicee.TemplatesAs of
Cicee.Templates
version0.2.0
, the following templates are provided:
cicee-classlib-package
: Aclasslib
-based Package Solution
- This template provides a base for creating libraries, distributed as NuGet packages. It includes: a source project, based upon the
classlib
template, a unit test project, based upon thexunit
template, and CI scripts.cicee-webapi-service
: Awebapi
-based Service Solution
- This template provides a base for creating web APIs, distributed as Docker images. It includes: a source project, based upon the
webapi
template, unit test and integration test projects, based upon thexunit
template, and CI scripts.
dotnet tool install -g cicee
If you already have CICEE installed, but want to update to the latest release:
dotnet tool update -g cicee
Open a Bash terminal session in the root directory of the project.
Execute cicee init repository
.
dotnet new tool-manifest && dotnet tool install --local cicee && dotnet cicee init repository
This adds:
- a .NET local tool installation of CICEE
- a
Dockerfile
which will provide all the tools needed to perform the project's continuous integration tasks. docker-compose
files which define the continuous integration containerized execution environment.- a small, flexible continuous integration workflow template. Three initial workflows are provided:
compose
: Create the project's distributable artifacts. For example, render SASS to CSS, compile source code, build docker images, compress zip archives, package for NPM, etc.publish
: Publish the project's distributable artifacts to their repositories. For example, push docker images, publish a package to NuGet, etc.validate
: Validate the current project for correctness, completeness, or other rules. Supports automated checks which should be executed during pull request review.
Open a Bash terminal session in the root directory of the project.
Execute cicee exec
and provide one of the CI workflow entry points.
dotnet cicee exec --entrypoint ci/bin/validate.sh
- Update continuous integration configuration. This is normally done in
project-metadata.json
(which was created bycicee init repository
). However, if there is noproject-metadata.json
, CICEE will read NPM'spackage.json
, if present.- Update the project's name and description, if needed.
- Update the current
Major.Minor.Patch
version. - Configure required environment variables and defaults. (Use the
cicee meta cienv var
commands to easily view and modify this configuration.)
- Set up the continuous integration workflow.
create-react-app
Node.js React- .NET (applies to all currently-supported .NET languages and project types)
Some projects may require only a single recipe, e.g., .NET NuGet packages. Other projects may require multiple, e.g., a React SPA hosted by an ASP.NET application which is distributed as a Docker image.
- AWS CDK cloud assembly
create-react-app
Node.js React- Docker image
- .NET executable (e.g., ASP.NET application)
- .NET NuGet package
- Zip archive (compress other composed artifacts in preparation for distribution)
- Copy zip archive to AWS S3
- Publish .NET NuGet package
- Push Docker image to AWS ECR
- Push Docker image to Docker Hub
- Customize or override build version
- Generate
NuGet.config
for private NuGet source (e.g., to enable private package sources fordotnet restore
) - Import (
bash
source
) custom environment scripts - Login to AWS ECR (e.g., to use private images which are hosted in AWS ECR for base image in
ci/Dockerfile
)
- NuGet Library / .NET Tool
- Combines:
- Validate
- Compose
- Publish
- Combines:
- ASP.NET Docker Image / Self-contained Command Line Tool Docker Image
- Combines:
- Validate
- Compose
- .NET executable (e.g., ASP.NET application)
- Docker image
- Publish
- Combines:
- AWS CDK application hosting
create-react-app
SPA- Combines:
- Validate
- Compose
create-react-app
Node.js React- AWS CDK cloud assembly
- Zip archive (compress other composed artifacts in preparation for distribution)
- Publish
- Combines: