Skip to content

Commit 53cd092

Browse files
Merge pull request #1616 from openaustralia/feature/tag_deployments_in_git_log
Feature/tag deployments in git log
2 parents 21848d4 + 622d117 commit 53cd092

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

Capfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ require "capistrano/rvm"
2424
require "capistrano/honeybadger"
2525
require "capistrano/maintenance"
2626
require "capistrano/scm/git"
27+
require "capistrano/tagging3"
2728
install_plugin Capistrano::SCM::Git
2829

2930
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ group :development do
137137
gem "capistrano", require: false
138138
gem "capistrano-rails", require: false
139139
gem "capistrano-rvm"
140+
gem "capistrano-tagging3", "~> 2.0"
140141
gem "capistrano-maintenance", require: false
141142
gem "ed25519", "~> 1.3"
142143

@@ -163,9 +164,9 @@ end
163164
group :doc do
164165
# bundle exec rake doc:rails generates the API under doc/api.
165166
gem "sdoc", require: false
166-
# Fix Unresolved or ambiguous specs
167-
gem "psych", "~> 5.2.6"
168167
end
168+
# Fix Unresolved or ambiguous specs
169+
gem "psych", "~> 5.2.6"
169170

170171
# Use ActiveModel has_secure_password
171172
# gem 'bcrypt-ruby', '~> 3.0.0'

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ GEM
127127
capistrano-rvm (0.1.2)
128128
capistrano (~> 3.0)
129129
sshkit (~> 1.2)
130+
capistrano-tagging3 (2.0.0)
131+
capistrano (~> 3.0)
130132
capybara (3.40.0)
131133
addressable
132134
matrix
@@ -673,6 +675,7 @@ DEPENDENCIES
673675
capistrano-maintenance
674676
capistrano-rails
675677
capistrano-rvm
678+
capistrano-tagging3 (~> 2.0)
676679
capybara
677680
dalli (~> 3)
678681
delayed_job_active_record

config/deploy.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
# Default value for keep_releases is 5
3636
# set :keep_releases, 5
3737

38+
# Tagging options
39+
set :tagging3_format, ":stage_:release"
40+
3841
namespace :foreman do
3942
desc "Export the Procfile to Ubuntu's upstart scripts"
4043
task :export do

0 commit comments

Comments
 (0)