Fix commit resolution for Docker builds

This commit is contained in:
Zach Gollwitzer
2025-03-04 07:50:21 -05:00
parent cf0e573533
commit 5b2fa3d707
3 changed files with 11 additions and 4 deletions

View File

@@ -5,7 +5,11 @@ module Maybe
end
def commit_sha
`git rev-parse HEAD`.chomp
if Rails.env.production?
ENV["BUILD_COMMIT_SHA"]
else
`git rev-parse HEAD`.chomp
end
end
private