This file contains quick reminders and notes on how to package Sonic.
We consider here the packaging flow of Sonic version 1.0.0
for Linux.
-
How to bump Sonic version before a release:
- Bump version in
Cargo.toml
to1.0.0
- Execute
cargo update
to bumpCargo.lock
- Bump Debian package version in
debian/rules
to1.0.0
- Bump version in
-
How to build Sonic, package it and release it on Crates, GitHub, Docker Hub and Packagecloud (multiple architectures):
- Tag the latest Git commit corresponding to the release with tag
v1.0.0
, and push the tag - Wait for all release jobs to complete on the actions page on GitHub
- Download all release archives, and sign them locally using:
./scripts/sign_binaries.sh --version=1.0.0
- Publish a changelog and upload all the built archives, as well as their signatures on the releases page on GitHub
- Tag the latest Git commit corresponding to the release with tag