mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Fix commit resolution for Docker builds
This commit is contained in:
parent
cf0e573533
commit
5b2fa3d707
3 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue