stack_car 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_car/cli.rb +3 -3
- data/lib/stack_car/version.rb +1 -1
- data/templates/Dockerfile.erb +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: 8935b3571ad00021f891cb18350d397994e44df1
|
4
|
+
data.tar.gz: d8c0fb6c43557c582f14d460aeef30d13f01ffcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce34575e44b6748f0cef1e349c09624063d6e3e30909d8a1faf06d0d16a27e4d4519f18d9e87ece1a4a452396b68d83cf72aafe1635629db7cedf21623254b3a
|
7
|
+
data.tar.gz: 3ddbb81b43a3dd8183d8713d41ca93539f5e9e6eaed6fba5cd4dd0d49b2a20616725c521eda3d24ff12267f9b75f8212e5cbf77b57ddffef4e04611f28902ad9
|
data/lib/stack_car/cli.rb
CHANGED
@@ -97,7 +97,7 @@ module StackCar
|
|
97
97
|
desc "release ENVIRONTMENT", "tag and push and image to the registry"
|
98
98
|
def release(environment)
|
99
99
|
timestamp = Time.now.strftime("%Y%m%d%I%M%S")
|
100
|
-
sha = `git rev-parse HEAD`[0..
|
100
|
+
sha = `git rev-parse HEAD`[0..8]
|
101
101
|
registry = "#{ENV['REGISTRY_HOST']}#{ENV['REGISTRY_URI']}"
|
102
102
|
tag = ENV["TAG"] || 'latest'
|
103
103
|
unless File.exists?("#{ENV['HOME']}/.docker/config.json") && File.readlines("#{ENV['HOME']}/.docker/config.json").grep(/#{ENV['REGISTRY_HOST']}/).size > 0
|
@@ -116,7 +116,7 @@ module StackCar
|
|
116
116
|
desc "provision ENVIRONMENT", "configure the servers for docker and then deploy an image"
|
117
117
|
def provision(environment)
|
118
118
|
# TODO make dotenv load a specific environment?
|
119
|
-
run("dotenv ansible-playbook -i ops/hosts -l #{environment}:localhost ops/provision.yml")
|
119
|
+
run("DEPLOY_ENV=#{environment} dotenv ansible-playbook -i ops/hosts -l #{environment}:localhost ops/provision.yml")
|
120
120
|
end
|
121
121
|
|
122
122
|
desc "ssh ENVIRONMENT", "log in to a running instance - requires PRODUCTION_SSH to be set"
|
@@ -131,7 +131,7 @@ module StackCar
|
|
131
131
|
|
132
132
|
desc "deploy ENVIRONMENT", "deploy an image from the registry"
|
133
133
|
def deploy(environment)
|
134
|
-
run("dotenv ansible-playbook -i ops/hosts -l #{environment}:localhost ops/deploy.yml")
|
134
|
+
run("DEPLOY_HOOK=$DEPLOY_HOOK_#{environment.upcase} dotenv ansible-playbook -i ops/hosts -l #{environment}:localhost ops/deploy.yml")
|
135
135
|
end
|
136
136
|
|
137
137
|
method_option :elasticsearch, default: false, type: :boolean, aliases: '-e'
|
data/lib/stack_car/version.rb
CHANGED
data/templates/Dockerfile.erb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stack_car
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Kaufman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|