factorylabs-fdlcap 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fdlcap.gemspec +1 -1
- data/lib/fdlcap/recipes/autotagger.rb +13 -9
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.9
|
data/fdlcap.gemspec
CHANGED
@@ -29,19 +29,23 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
desc "remove all local tags before release_tagger fetches all tags"
|
33
|
-
task :
|
34
|
-
|
32
|
+
desc "remove all local stage tags before release_tagger fetches all tags"
|
33
|
+
task :remove_local_stage_tags, :roles => :app do
|
34
|
+
autotagger_stages.each do |stage|
|
35
|
+
puts `git tag -l #{stage}/* | xargs git tag -d`
|
36
|
+
end if fetch(:perform_remove_local_stage_tags, true)
|
35
37
|
end
|
36
38
|
end
|
37
39
|
|
38
40
|
# Run release tagger to get the right release for the deploy
|
39
|
-
before "deploy:update_code",
|
40
|
-
before "deploy:
|
41
|
-
|
42
|
-
before "deploy:cleanup",
|
43
|
-
before "deploy:cleanup",
|
41
|
+
before "deploy:update_code", "release_tagger:remove_local_stage_tags"
|
42
|
+
before "deploy:update_code", "release_tagger:set_branch"
|
43
|
+
|
44
|
+
before "deploy:cleanup", "release_tagger:create_tag"
|
45
|
+
before "deploy:cleanup", "release_tagger:write_tag_to_shared"
|
46
|
+
before "deploy:cleanup", "release_tagger:remove_previous_tags"
|
47
|
+
before "deploy:cleanup", "release_tagger:print_latest_tags"
|
48
|
+
|
44
49
|
|
45
|
-
before "release_tagger:create_tag", "release_tagger:remove_local_tags"
|
46
50
|
end
|
47
51
|
end
|