coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Feature]: Add SOURCE_COMMIT and SOURCE_BRANCH ENV variables

Open zek opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Summary

Adding build-time or runtime-variables such as SOURCE_COMMIT, SOURCE_BRANCH, SOURCE_PRMR_ID.

Why should this be worked on?

I see that there's such a SOURCE_COMMIT build arg in: https://github.com/coollabsio/coolify/blob/main/apps/api/src/lib/buildPacks/common.ts#L707

It didn't work for docker-compose builds I believe it's for Dockerfile builds. I belive if we make these variables it will be easier to manage versioning easily track errors for each release.

For example in sentry we can set SENTRY_RELEASE env variable so each error assigned to a spesific release. If we expose these env or build variables it will be easy to set SENTRY_RELEASE env variable.

image

zek avatar Jan 16 '23 10:01 zek