mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
build(rust): configure cargo cross to passthrough GITHUB_SHA (#7410)
Our relays aren't semver-versioned like other components. So for the version reported to Sentry, we use the current Git SHA. This one is only available as an ENV variable because we are building within a docker container using `cargo cross`. By default, no env variables are passed through to the container. To fix this, we need to add a configuration file that explicitly opts-in to the necessary ENV variable.
This commit is contained in:
2
rust/Cross.toml
Normal file
2
rust/Cross.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[build.env]
|
||||
passthrough = ["GITHUB_SHA"] # Allows binaries to embed the current SHA on CI.
|
||||
Reference in New Issue
Block a user