mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 20:44:08 +00:00
Fix commit resolution for Docker builds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user