Table of contents

Building a release

To build a release of cozy-stack, a script can automate the work. The release option of this script will generate a binary with a name containing the version of the file, along with a SHA-256 sum of the binary.

You can use a local.env at the root of the repository to add your default values for environment variables.

See ./scripts/ --help for more informations.

COZY_ENV=development GOOS=linux GOARCH=amd64 ./scripts/ release

The version string is deterministic and reflects entirely the state of the working-directory from which the release is built from. It is generated using the following format:

    <TAG>[-<NUMBER OF COMMITS AFTER TAG>][-dirty][-dev]