ecs_deployer 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/ecs_deployer/client.rb +4 -2
- data/lib/ecs_deployer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e858182761bb8986a1f6a4a498fd49e7a0a0cac5
|
4
|
+
data.tar.gz: c043dc367faa2e9fd0e668ef59b4bcde354b1055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fb2d12e8381594ddf5da410f7b466d45adba0e3fdc664bb900818318301605c0ef5313a39f96f0e45aa36b36138ef3f48d044aa828afe64cf57bb0429b7a54c
|
7
|
+
data.tar.gz: 9c13982975a2940cf934f98fd9621f313c6f14e14bc1d86784eeab94d64f1405779c315ca008d6814e49b6abba3bab1d49a9b0161bb93970696b8c2a3a69c177
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/ecs_deployer.svg)](https://badge.fury.io/rb/ecs_deployer)
|
4
4
|
[![Test Coverage](https://codeclimate.com/github/naomichi-y/ecs_deployer/badges/coverage.svg)](https://codeclimate.com/github/naomichi-y/ecs_deployer/coverage)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/naomichi-y/ecs_deployer/badges/gpa.svg)](https://codeclimate.com/github/naomichi-y/ecs_deployer)
|
6
|
-
[![CircleCI](https://circleci.com/gh/naomichi-y/ecs_deployer/tree/master.svg?style=
|
6
|
+
[![CircleCI](https://circleci.com/gh/naomichi-y/ecs_deployer/tree/master.svg?style=shield)](https://circleci.com/gh/naomichi-y/ecs_deployer/tree/master)
|
7
7
|
|
8
8
|
## Description
|
9
9
|
|
@@ -98,28 +98,28 @@ deployer.register_task('development.yml', tag: 'latest')
|
|
98
98
|
|
99
99
|
#### Register new task
|
100
100
|
|
101
|
-
```
|
101
|
+
```bash
|
102
102
|
$ bundle exec ecs_deployer task-register --path=spec/fixtures/task.yml --replace-variables=tag:latest
|
103
103
|
Registered task: arn:aws:ecs:ap-northeast-1:xxx:task-definition/hello_world:53
|
104
104
|
```
|
105
105
|
|
106
106
|
#### Encrypt environment value
|
107
107
|
|
108
|
-
```
|
108
|
+
```bash
|
109
109
|
$ bundle exec ecs_deployer encrypt --master-key=master --value='test'
|
110
110
|
Encrypted value: ${xxx}
|
111
111
|
```
|
112
112
|
|
113
113
|
#### Decrypt environment value
|
114
114
|
|
115
|
-
```
|
115
|
+
```bash
|
116
116
|
$ bundle exec ecs_deployer decrypt --value='${xxx}'
|
117
117
|
Decrypted value: xxx
|
118
118
|
```
|
119
119
|
|
120
120
|
#### Update service
|
121
121
|
|
122
|
-
```
|
122
|
+
```bash
|
123
123
|
$ bundle exec ecs_deployer update-service --cluster=xxx --service=xxx --wait --timeout=600
|
124
124
|
Start deploying...
|
125
125
|
Deploying... [0/1] (20 seconds elapsed)
|
data/lib/ecs_deployer/client.rb
CHANGED
@@ -140,8 +140,10 @@ module EcsDeployer
|
|
140
140
|
next unless container_definition.key?(:environment)
|
141
141
|
|
142
142
|
container_definition[:environment].each do |environment|
|
143
|
-
|
144
|
-
|
143
|
+
if environment[:value].class == String
|
144
|
+
match = environment[:value].match(ENCRYPT_PATTERN)
|
145
|
+
environment[:value] = decrypt(match[0]) if match
|
146
|
+
end
|
145
147
|
end
|
146
148
|
end
|
147
149
|
end
|
data/lib/ecs_deployer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecs_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- naomichi-y
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: runtime_command
|