vidar 1.13.3 → 1.13.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/vidar/cli.rb +7 -5
- data/lib/vidar/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: 5c96a6938608186988d95fbfc35484c3277591ada026983b454bf18f371edc69
|
4
|
+
data.tar.gz: e6505546c3a9609c0b2443d469460f2f36194679d4b906601b9dab5c2ded4eca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d0659e94c7c009057d0d752f79eb1fadc1fc993e4de0f9b24975d77771f0192efafe9ea1a7def905178d7027c3a42b1eb0e60ef708c0583a45e3fc4e5c0c1e6
|
7
|
+
data.tar.gz: d0a1042e63335f76e87b61b6a899d9df704d35fe34aec8f0494bc9b571672c50b2724f4881b442e534b9207ec8123c4279fa1df03febe02316c980898849a0ae
|
data/Gemfile.lock
CHANGED
data/lib/vidar/cli.rb
CHANGED
@@ -22,12 +22,14 @@ module Vidar
|
|
22
22
|
desc "pull", "Pull existing docker images to leverage docker caching"
|
23
23
|
def pull
|
24
24
|
Log.info "Pulling #{Config.get!(:image)} tags"
|
25
|
-
Run.docker "pull #{Config.get!(:image)}:#{Config.get!(:base_stage_name)}-#{Config.get!(:
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
Run.docker "pull #{Config.get!(:image)}:#{Config.get!(:base_stage_name)}-#{Config.get!(:current_branch)} 2> /dev/null || true"
|
26
|
+
|
27
|
+
docker_images = `docker images --format "{{.Repository}}:{{.Tag}}"`.split("\n")
|
28
|
+
base_image = "#{Config.get!(:image)}:#{Config.get!(:base_stage_name)}-#{Config.get!(:default_branch)}"
|
29
|
+
Run.docker "pull #{base_image} 2> /dev/null || true" unless docker_images.include?(base_image)
|
30
|
+
|
29
31
|
Log.info "Docker images:"
|
30
|
-
|
32
|
+
Log.info docker_images.join("\n")
|
31
33
|
end
|
32
34
|
|
33
35
|
desc "build_and_cache_base", "Build and caches base stage"
|
data/lib/vidar/version.rb
CHANGED