containerci 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87e9e127ec1a79ea0eea9182a02dafa1a09d63d7
4
- data.tar.gz: caa676e0b54499a29083ecb2e0d94824ec752171
3
+ metadata.gz: 308d69ece4c977ad2c95c3572eea0dfbbba58ccf
4
+ data.tar.gz: 4efab62562715451af5fe4d8098bf54841c5dfe1
5
5
  SHA512:
6
- metadata.gz: 434cfe36cd0330ada2f8ba92a75524c4f7290f017b5bef1b32297023630260fd9fc7c5eafccbf94ac0708fbc0d9929ac680f0eaa61820f8b553a6a206b6aa7f6
7
- data.tar.gz: d1fcca4247a7503db3a9d27890c015973f4c73504290958cf4e48ccb018807672377acce7d935dabbc4b2e52c7e1869ad4e397d469855ea7f65a61589970f3e8
6
+ metadata.gz: 1072683cb94e37691a9b3b2a8426cc2d30262e70c954477bfac762b3b5ea79f09b5e1b61772358e24229763ea00d3585dda4a46c5d82acb6750db0759f715c8c
7
+ data.tar.gz: 0588b6ac0b5fc61f146ba462a8c982b80072554ac3e181cb72dfd95e11f1a80e579b4bbd941e4d2db1d42ac54402385b4de7adc456bd0e822195edc76aeafa65
data/ChangeLog.md CHANGED
@@ -6,3 +6,6 @@
6
6
 
7
7
  ### Clarify test task
8
8
 
9
+ ## Changes since ContainerCI 0.3.0
10
+
11
+ Fix git commands to handle tags correctly
data/README.md CHANGED
@@ -90,6 +90,7 @@ task after_test_success: [:tag, :trigger_next_builds]
90
90
 
91
91
  task :tag do
92
92
  sh 'git tag -f tests_passed'
93
+ sh 'git push --tags -f'
93
94
  sh 'git push -f origin tests_passed'
94
95
  end
95
96
 
data/lib/containerci.rb CHANGED
@@ -40,9 +40,10 @@ module ContainerCI
40
40
  sh 'git clone https://$GITHUB_OAUTH:x-oauth-basic@' \
41
41
  "github.com/#{USER}/#{GITHUB_PROJECT}.git"
42
42
  end
43
+ sh "cd #{GITHUB_PROJECT} && git rev-parse HEAD"
44
+ sh "cd #{GITHUB_PROJECT} && git fetch --tags"
43
45
  sh "cd #{GITHUB_PROJECT} && git pull origin tests_passed"
44
46
  sh "cd #{GITHUB_PROJECT} && git show-ref --tags"
45
- sh "cd #{GITHUB_PROJECT} && git checkout tests_passed"
46
47
  sh "cd #{GITHUB_PROJECT} && git rev-parse HEAD"
47
48
  puts 'done'
48
49
  end
@@ -1,4 +1,4 @@
1
1
  # Rakefile toolkit for creating automated builds for Docker containers.
2
2
  module ContainerCI
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: containerci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz