Repository navigation
CICD
IP-2-CloudResources has several stages to its CI/CD workflow, all of which are listed below.
The following platforms are used as part of the CI/CD process.
OS Versions: Ubuntu latest, Mac OS latest
Golang Versions: oldstable, stable
- Confirm the code as is and the code after being ran through
gofmtmatch - Run
go vet - Confirm dependencies
- Run
govulncheckto check for known vulnerabilities in used dependencies - Build project binary
- Run
golangcifor code linting - Run unit tests
- Run benchmarks
- Upload test coverage data to Codacy
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.
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.
At a high level, the workflow for a release is:
- Build IP2CR for each supported OS (e.g. Linux, Mac, Windows) and record their checksums
- Generate the SLSA provinance for all builds/artifacts
- Update the Homebrew repo with the latest release
- Build and upload Docker images of IP2CR to both Docker Hub and GitHub Container Registry