ecs_helper 0.0.6 → 0.0.7

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: bc4a63fcf5c08e94f73e2531698b53a35ba0ecf6c93f3847829e0a0b844ecfd3
4
- data.tar.gz: 844e8665dd3b55fdb4776e309b59d62b61b26ae710f42c336d4fe2598af54118
3
+ metadata.gz: 6ae9acfcba76fc375216cac8cb286a027802a5a7aace51dc571ea881a0d6ee11
4
+ data.tar.gz: c8971806e3267a671cee9166e5bd4970cad8276081c8da7520d9bf0ded204c00
5
5
  SHA512:
6
- metadata.gz: '071923e4ed5313a85ffeae2a85613e66ef76fe643ed7dbdf72ab9e53d7051159df75592700ba31f7583257507ee9825dd54c25869a11d769433b300a90eadd52'
7
- data.tar.gz: 5e540f604ff4836c8309b5a146e9e5a1715086c2a3df7d834756b34acb4ba55f32d83f6f043427cf944443b4ca8b8b9ceae7507bce7c051c49ef0b6f0aad4eda
6
+ metadata.gz: 636b09bb528ac680aca4ff916337e77599714b128b00fc4139200242cfa2c0601fecb6594765ffd549d4c68bfdf2a39f3024930d05e28484dd0fd35050b04a32
7
+ data.tar.gz: 5828108e9ccf25e9765e0e66006b859bf0a8a07321ad982a63e02f6ffdaf0278b81a137bd89371b7d447f688a6f451f384a15a078643e7f29bac910c0de567c3
@@ -32,7 +32,6 @@ class ECSHelper::Command::BuildAndPush < ECSHelper::Command::Base
32
32
  def auth_public
33
33
  auth_cmd = Terrapin::CommandLine.new("aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws")
34
34
  auth_cmd.run
35
-
36
35
  end
37
36
 
38
37
  def auth_private
@@ -18,12 +18,6 @@ class ECSHelper::Command::ExportImages < ECSHelper::Command::Base
18
18
  puts export_images
19
19
  end
20
20
 
21
- def auth
22
- auth_cmd = Terrapin::CommandLine.new("aws ecr get-login --no-include-email | sh")
23
- auth_cmd.run
24
- end
25
-
26
-
27
21
  private
28
22
 
29
23
  def project
@@ -35,7 +29,7 @@ class ECSHelper::Command::ExportImages < ECSHelper::Command::Base
35
29
  end
36
30
 
37
31
  def export_images
38
- variables = (['export'] + client.publicrepositories.map do |repo|
32
+ variables = (['export'] + client.private_repositories.map do |repo|
39
33
  container_name = repo.repository_name.scan(/#{project}-#{application}-(.*)/).flatten.first
40
34
  key = container_name.upcase.gsub("-", "_") + "_IMAGE"
41
35
  value = "#{repo.repository_uri}:#{helper.version}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecs_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Petrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecs