ecs_helper 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecs_helper/command/ecr_login.rb +8 -2
- data/lib/ecs_helper/command/export_images.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: bc4a63fcf5c08e94f73e2531698b53a35ba0ecf6c93f3847829e0a0b844ecfd3
|
4
|
+
data.tar.gz: 844e8665dd3b55fdb4776e309b59d62b61b26ae710f42c336d4fe2598af54118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '071923e4ed5313a85ffeae2a85613e66ef76fe643ed7dbdf72ab9e53d7051159df75592700ba31f7583257507ee9825dd54c25869a11d769433b300a90eadd52'
|
7
|
+
data.tar.gz: 5e540f604ff4836c8309b5a146e9e5a1715086c2a3df7d834756b34acb4ba55f32d83f6f043427cf944443b4ca8b8b9ceae7507bce7c051c49ef0b6f0aad4eda
|
@@ -16,10 +16,16 @@ class ECSHelper::Command::ECRLogin < ECSHelper::Command::Base
|
|
16
16
|
|
17
17
|
def run
|
18
18
|
log("Command", type)
|
19
|
-
log("Auth",
|
19
|
+
log("Auth Private", auth_private)
|
20
|
+
log("Auth Public", auth_public)
|
20
21
|
end
|
21
22
|
|
22
|
-
def
|
23
|
+
def auth_public
|
24
|
+
auth_cmd = Terrapin::CommandLine.new("aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws")
|
25
|
+
auth_cmd.run
|
26
|
+
end
|
27
|
+
|
28
|
+
def auth_private
|
23
29
|
auth_cmd = Terrapin::CommandLine.new("aws ecr get-login --no-include-email | sh")
|
24
30
|
auth_cmd.run
|
25
31
|
end
|
@@ -35,7 +35,7 @@ class ECSHelper::Command::ExportImages < ECSHelper::Command::Base
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def export_images
|
38
|
-
variables = (['export'] + client.
|
38
|
+
variables = (['export'] + client.publicrepositories.map do |repo|
|
39
39
|
container_name = repo.repository_name.scan(/#{project}-#{application}-(.*)/).flatten.first
|
40
40
|
key = container_name.upcase.gsub("-", "_") + "_IMAGE"
|
41
41
|
value = "#{repo.repository_uri}:#{helper.version}"
|