2 months ago
I've just started converting some environment variables into sealed variables, but noticed that they are now missing in my PR environments resulting in failed PR CI builds.
How can I have the sealed variables be available in preview environments?
2 Replies
2 months ago
Sealed variables are intentionally not copied to PR environments, as noted in the sealed variables caveats. A workaround is to store the sensitive values as shared variables in Project Settings, then reference them in your services using the ${{shared.VARIABLE_KEY}} syntax. Since the reference variable itself is not sealed, it will be copied to PR environments and will resolve to the shared variable's value.
Status changed to Awaiting User Response Railway • about 2 months ago
2 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 2 months ago
a month ago
I've made my sealed variables into shared variables, but it still isn't available in the PR environments. When trying to share the shared variables to my service (which I assume should make it available to my PR environments) the deploy button is also disabled.
What am I missing? Please help.
Attachments
Status changed to Awaiting Railway Response Railway • about 1 month ago
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • about 1 month ago