ecs_deployer 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -1
- data/lib/ecs_deployer/client.rb +3 -0
- 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: fcab66b41be600e735769cf0493a76352e22c9b5
|
4
|
+
data.tar.gz: 346a8ec79be444450f019421d7eb94a336d2c060
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ac721b4f030236b7f955b5d1d3111f1e8937ade954dd1a52c4fba683bde15e746eb5407dbf87b4027f0a032564dd60e98df95b8c4b047e6d7fa1f052042c6ce
|
7
|
+
data.tar.gz: 966f557cbf5d0e82e5ef8ec619257c633b00cda0870aac472de2f6e0bb7db1741b0d14e19ac9da5d07094c05cf4fa6b1cec5cf9855626283e0bc62ec4e07ba18
|
data/README.md
CHANGED
@@ -5,6 +5,18 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/naomichi-y/ecs_deployer/badges/gpa.svg)](https://codeclimate.com/github/naomichi-y/ecs_deployer)
|
6
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
|
+
* [Description](#description)
|
9
|
+
* [Installation](#installation)
|
10
|
+
* [Task definition](#task-definition)
|
11
|
+
* [Encrypt of environment zs](#encrypt-of-environment-variables)
|
12
|
+
* [Usage](#usage)
|
13
|
+
* [API](#api)
|
14
|
+
* [CLI](#cli)
|
15
|
+
* [Register new task](#register-new-task)
|
16
|
+
* [Encrypt environment value](#encrypt-environment-value)
|
17
|
+
* [Decrypt environment value](#decrypt-environment-value)
|
18
|
+
* [Update service](#update-service)
|
19
|
+
|
8
20
|
## Description
|
9
21
|
|
10
22
|
Deploy Docker container on AWS ECS..
|
@@ -100,7 +112,7 @@ deployer.register_task('development.yml', tag: 'latest')
|
|
100
112
|
|
101
113
|
```bash
|
102
114
|
$ bundle exec ecs_deployer task-register --path=spec/fixtures/task.yml --replace-variables=tag:latest
|
103
|
-
Registered task: arn:aws:ecs:ap-northeast-1:xxx:task-definition/hello_world:
|
115
|
+
Registered task: arn:aws:ecs:ap-northeast-1:xxx:task-definition/hello_world:latest
|
104
116
|
```
|
105
117
|
|
106
118
|
#### Encrypt environment value
|
data/lib/ecs_deployer/client.rb
CHANGED
@@ -143,6 +143,9 @@ module EcsDeployer
|
|
143
143
|
if environment[:value].class == String
|
144
144
|
match = environment[:value].match(ENCRYPT_PATTERN)
|
145
145
|
environment[:value] = decrypt(match[0]) if match
|
146
|
+
else
|
147
|
+
# https://github.com/naomichi-y/ecs_deployer/issues/6
|
148
|
+
environment[:value] = environment[:value].to_s
|
146
149
|
end
|
147
150
|
end
|
148
151
|
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.5
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: runtime_command
|