ecs_helper 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a6e09d4b2a2ed874777c4f686fb7bf40507040f5c8a60be784daa676cedc60c
4
- data.tar.gz: 7c835b8c82e2afae8fb43ad4bd507103613969b6243e7de3c0d856436da78008
3
+ metadata.gz: 98cb435b9e236887bb9ef421684575cdb7a5bd2620ed656d5cd9cd9f5f853b68
4
+ data.tar.gz: bbc4d20a921949253857f63d42691cc8ccc9db367e4439e6331ece92d0633dba
5
5
  SHA512:
6
- metadata.gz: 8cd0385459adf1e598f2cd84afd90ea6580d2bade9f5cd5e61bb1d7b3310c7ea3b0951036208be63f12b65791f93ef5096cd672ef1528edc0a727827ab6c9d2d
7
- data.tar.gz: abc89010d228f7e7c8b7dd0b04e72f5f1a590959ff4c59ca4fc9810f8ba5274680a24464dd9b1ae90cd1469054bcad6f66f84c9d5b3d55ad1d83897b3f4a041d
6
+ metadata.gz: ccf0a781efd06d822cd3cdb31e0def958134e3085e964d30a8ab2ce8313d42a45dea12a74f4bd6760737190bf329a3c3bb35b0f3615e4fdef7d99fef14056970
7
+ data.tar.gz: c347db660688ee9e409526fd151708f1033e0aa974d3c961984f1068c4b102cc4fc2113de3fca32c634612dbdfdc335aa5b91b0afe3b9dc83e728ae044766523
@@ -17,7 +17,7 @@ class ECSHelper::Command::ECRLogin < ECSHelper::Command::Base
17
17
  def run
18
18
  log("Command", type)
19
19
  log("Auth Private", auth_private)
20
- log("Auth Public", auth_public)
20
+ # log("Auth Public", auth_public)
21
21
  end
22
22
 
23
23
  def auth_public
@@ -1,6 +1,7 @@
1
1
  BRANCH_TO_ENV_MAPPING = {
2
2
  master: 'production',
3
3
  qa: 'qa',
4
+ uat: 'uat',
4
5
  staging: 'staging',
5
6
  demo: 'demo',
6
7
  }
@@ -41,7 +41,7 @@ class ECSHelper::TaskDefinitionHelper
41
41
  end
42
42
 
43
43
  def container_definition_to_ecr(cd)
44
- repo = repo_for(cd.name)
44
+ repo = repo_for(cd)
45
45
  is_ecr = cd.image.include?(ecr_base)
46
46
  image = repo && version_image(repo)
47
47
  should_update = is_ecr && repo && image
@@ -58,18 +58,9 @@ class ECSHelper::TaskDefinitionHelper
58
58
 
59
59
  private
60
60
 
61
- def container_definition_to_ecr(cd)
62
- repo = repo_for(cd.name)
63
- is_ecr = cd.image.include?(ecr_base)
64
- image = repo && version_image(repo)
65
- should_update = is_ecr && repo && image
66
- [repo, is_ecr, image, should_update]
67
- end
68
-
69
- def repo_for(name)
61
+ def repo_for(cd)
70
62
  repositories.find do |r|
71
- uri = r.repository_uri
72
- uri.include?(helper.application) && uri.include?(helper.project) && uri.include?(name)
63
+ cd.image.include?(r.repository_uri)
73
64
  end
74
65
  end
75
66
 
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.18
4
+ version: 0.0.19
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-07-27 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecs