According to the description of ci-env command, werf should define a set of WERF_* variables and perform some actions to integrate with the CI/CD system.

werf uses the following values for werf environment variables:


The value of WERF_REPO is derived from the GITHUB_REPOSITORY GitHub Actions variable (converted to lowercase) and project name from werf.yaml:$GITHUB_REPOSITORY/<project-name>.


The value of WERF_ADD_ANNOTATION_PROJECT_GIT is based on the GITHUB_REPOSITORY GitHub Actions environment variable and composed as follows:$GITHUB_REPOSITORY


The value of WERF_ADD_ANNOTATION_CI_COMMIT is extracted from the GITHUB_SHA GitHub Actions environment variable and composed as follows:$GITHUB_SHA


The value of WERF_ADD_ANNOTATION_GITHUB_ACTIONS_RUN_URL is derived from the GITHUB_RUN_ID GitHub Actions environment variable and composed in the following way:$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID

Other variables

Other variables are configured in the regular way described in the overview article:

How to use

You can turn on the integration with GitHub Actions by invoking the werf ci-env command with the required positional argument:

werf ci-env github