Skip to content

Add environment variables via deploy #143

Open
@Firesphere

Description

@Firesphere

Use case:
When deploying an app, I would like to be able to pass temporary variables to the build, that are not needed after the build is complete.
An example of this, is the version number, I want to deploy a new version of the app. But because my git folder isn't uploaded, during build, I do not have access to the git tag.

However, after successful build of an app, I want to inform Sentry of this new release.
I do not want to inform sentry of this new version number, if the build fails, because that would cause incorrect information in Sentry.

Thus, I'd like to be able to do something along the lines of caprover deploy --default --buildParams={version:1.2.3}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions