Skip to content
Josh Carlson edited this page Jan 21, 2024 · 7 revisions

Summary

IP-2-CloudResources has several stages to its CI/CD workflow, all of which are listed below.

Platforms and Tools

The following platforms are used as part of the CI/CD process.

Deployments

Code Quality, Coverage, and Security

Crash Analytics

Workflows

Build and Test

Main Branch

OS Versions: Ubuntu latest, Mac OS latest Golang Versions: oldstable, stable

  1. Confirm the code as is and the code after being ran through gofmt match
  2. Run go vet
  3. Confirm dependencies
  4. Run govulncheck to check for known vulnerabilities in used dependencies
  5. Build project binary
  6. Run golangci for code linting
  7. Run unit tests
  8. Run benchmarks
  9. Upload test coverage data to Codacy

Release Branch

The process is the same for release branches, but the workflows are only ran on the latest version of Ubuntu using the current stable version of golang.

Release

The "Release" workflow does exactly that: it runs the code required to perform official releases of IP2CR. It uses the latest version of Goreleaser's workflow under the hood with the release --clean arguments to automatically generate a new release.

Customizations for goreleaser can be found in the .goreleaser.yml config file. Instructions on how to perform a release can be found in the Developer Guide.

Workflow

At a high level, the workflow for a release is:

  1. Build IP2CR for each supported OS (e.g. Linux, Mac, Windows) and record their checksums
  2. Generate the SLSA provinance for all builds/artifacts
  3. Update the Homebrew repo with the latest release
  4. Build and upload Docker images of IP2CR to both Docker Hub and GitHub Container Registry

Clone this wiki locally

⌂ 换网址