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 +4 -4
- data/lib/miriamtech/gocd/docker.rb +0 -2
- data/lib/miriamtech/gocd/tasks.rb +8 -4
- data/lib/miriamtech/gocd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52f9d377244ce4558f66ae5ea21b3ea76216708568a3aa78ad30c21354a6369b
|
4
|
+
data.tar.gz: 8aca9451787f550885aa3b71a15e7941828758f55b8aa81e2fe1ff38869cd025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|