If CodeChecker is released on the GitHub we need to create new docker images and a new snap package from it.
A Github action will automatically create docker images on every new release.
If you would like to build docker images manually from a CodeChecker repository
run the following commands (don't forget to replace <x.y>
with the new
version):
# Checkout the new release.
git checkout v6.<x.y>
# Build the image without cache.
docker build \
--build-arg CC_VERSION=v6.<x.y> \
--tag codechecker/codechecker-web:6.<x.y> \
--no-cache \
web/docker
# Update the latest tag.
docker build \
--build-arg CC_VERSION=v6.<x.y> \
--tag codechecker/codechecker-web:latest \
web/docker
To build and release a snap package from a new CodeChecker version do the following steps:
-
Check and update the
version
and thesource
values in thesnap/snapcraft.yaml
file with the version you would like to build for a new CodeChecker snap package. -
Run the following commands from a CodeChecker repository:
# Clean the previous builds. snapcraft clean # Build the snap package. snapcraft # Try out the package in your local environment. sudo snap install codechecker_<version>_amd64.snap --dangerous --classic # See if it works. snap run codechecker version # Login to the snap store. snapcraft login # Upload and release it to the stabel channel. snapcraft upload --release=stable codechecker_<version>_amd64.snap # Get info from the revisions. snapcraft list-revisions codechecker # Update the package on my machine. sudo snap refresh codechecker --stable --classic --amend # See if it works. snap run codechecker version