add build numbers

This commit is contained in:
Zachary Chai 2016-12-02 12:27:33 -05:00
parent 98a8cdbd2a
commit 76316b96ec
6 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@ -21,4 +21,3 @@ vendor/.bundle
# Ignore Byebug command history file. # Ignore Byebug command history file.
.byebug_history .byebug_history
.env

View File

@ -42,4 +42,10 @@ module ApplicationHelper
providers providers
end end
end end
def version
Greenlight::VERSION
rescue
'development'
end
end end

View File

@ -71,7 +71,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<!-- Footer --> <!-- Footer -->
<div class='footer text-center'> <div class='footer text-center'>
<%= t('powered_bigbluebutton_html', link: link_to('BigBlueButton', 'http://bigbluebutton.org/', target: "_blank")) %> <%= t('footer_html', greenlight_link: link_to('Greenlight', 'https://github.com/bigbluebutton/greenlight', target: "_blank"), version: version, bbb_link: link_to('BigBlueButton', 'http://bigbluebutton.org/', target: "_blank")) %>
</div> </div>
<!-- End of Footer --> <!-- End of Footer -->
</body> </body>

View File

@ -10,4 +10,5 @@ deployment:
hub: hub:
branch: master branch: master
commands: commands:
- ./scripts/set_version.sh
- ./scripts/build_image_master.sh - ./scripts/build_image_master.sh

View File

@ -71,7 +71,7 @@ en-US:
no: No no: No
oauth_signup: Signup for customized sessions oauth_signup: Signup for customized sessions
past_recordings: Past Recordings past_recordings: Past Recordings
powered_bigbluebutton_html: Powered by %{link} footer_html: "%{greenlight_link} build %{version}, Powered by %{bbb_link}"
presentation: Presentation presentation: Presentation
previously_joined_meetings: Previously Joined Sessions previously_joined_meetings: Previously Joined Sessions
return_to_room: Return to your personal room return_to_room: Return to your personal room

3
scripts/set_version.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "module Greenlight VERSION = ${CIRCLE_BUILD_NUM} end" >| $HOME/greenlight/app/lib/version.rb