miriamtech-gocd 0.2.5 → 0.2.6

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
  SHA256:
3
- metadata.gz: 36bb5e58de16e0265808a3dea1ef4c080aed0980f12a15836a73015301618531
4
- data.tar.gz: 63752d772b291d09d87b8d464c6783ebd1f6db8a437e689f5d86c95995384cfa
3
+ metadata.gz: 52f9d377244ce4558f66ae5ea21b3ea76216708568a3aa78ad30c21354a6369b
4
+ data.tar.gz: 8aca9451787f550885aa3b71a15e7941828758f55b8aa81e2fe1ff38869cd025
5
5
  SHA512:
6
- metadata.gz: 06ca072ff4682cab374e4ab8422dfade27be1d2010dec3aea8cdc170b785f6fb9be364fdfc9e4801b4a2dabedd551f5c2db7300862e156a864bf5f3f20236271
7
- data.tar.gz: fa7ea749465500419785aecb59cbb63dda6a6032b91bb25daa7dd1c18a1e24a79912be5c5399d2662fa7578b2aca83d2f1021277c5c4f08aa6f1063de33fc092
6
+ metadata.gz: 2cb3141a05bb08bafb546b2d1156c01a3608de988ede9cbc385f8e1e7eec5a04b979a4fc52099ec462781243e9354a27ea0a89adad3829bcf23d6437abd855cb
7
+ data.tar.gz: 4b2d8848833dfb5fa6b935ee28f0a04ae038832dce5469da7a618115105a18baeab57e769ab839ae7f149d13da6a99db8b9f9bdd2b152907b675c440e66c0915
@@ -14,7 +14,6 @@ module MiriamTech
14
14
  end
15
15
 
16
16
  def docker_compose(string)
17
- # PIPELINE_NAME = (ENV['GO_PIPELINE_NAME'] || 'ilien').downcase
18
17
  cd root_path do
19
18
  sh "docker-compose -p #{project_name} -f docker-compose.yml #{string}"
20
19
  end
@@ -28,7 +27,6 @@ module MiriamTech
28
27
  else
29
28
  @build_tag = ""
30
29
  end
31
- env['BUILD_TAG'] = @build_tag
32
30
  end
33
31
  end
34
32
  end
@@ -11,12 +11,16 @@ module MiriamTech
11
11
  task :default => [:test]
12
12
  task :full => [:clobber, :build]
13
13
 
14
+ task :environment do
15
+ ENV['BUILD_TAG'] = build_tag
16
+ end
17
+
14
18
  CLEAN.add(root_path + 'test/reports')
15
- task :clean do
19
+ task :clean => :environment do
16
20
  docker_compose "stop"
17
21
  end
18
22
 
19
- task :clobber => :cleanup_old_images do
23
+ task :clobber => [:environment, :cleanup_old_images] do
20
24
  docker_compose "rm -fv"
21
25
  end
22
26
 
@@ -24,11 +28,11 @@ module MiriamTech
24
28
  cleanup_old_images(image_name, revisions_to_keep)
25
29
  end
26
30
 
27
- task :build do
31
+ task :build => :environment do
28
32
  docker "build --force-rm -t #{image_name}#{build_tag} #{root_path}"
29
33
  end
30
34
 
31
- task :test
35
+ task :test => :environment
32
36
 
33
37
  task :push do
34
38
  push(image_name)
@@ -1,5 +1,5 @@
1
1
  module MiriamTech
2
2
  module GoCD
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miriamtech-gocd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Treis