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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c211b3d1c2030db2a5e70cb4bf82e735d161ff30
4
- data.tar.gz: 2d66451f16f94290bdc5cc85af8ed13893f1acde
3
+ metadata.gz: 8935b3571ad00021f891cb18350d397994e44df1
4
+ data.tar.gz: d8c0fb6c43557c582f14d460aeef30d13f01ffcd
5
5
  SHA512:
6
- metadata.gz: 7e7deb0336394994473ee04230589480b72fb43983cf6bba5bf741475deb8f7c574b0584feba769b28fff08cd3d356095357013541cc37977f300b38aef5b2da
7
- data.tar.gz: 21a74ff7c055eab71c3a4c43f260830756b2adfe72f23ff3d335788384d3575587b59fb72e490ddfe4c1f1cef5a448062f3a5aea4bb321d98fbd653e55b12eea
6
+ metadata.gz: ce34575e44b6748f0cef1e349c09624063d6e3e30909d8a1faf06d0d16a27e4d4519f18d9e87ece1a4a452396b68d83cf72aafe1635629db7cedf21623254b3a
7
+ data.tar.gz: 3ddbb81b43a3dd8183d8713d41ca93539f5e9e6eaed6fba5cd4dd0d49b2a20616725c521eda3d24ff12267f9b75f8212e5cbf77b57ddffef4e04611f28902ad9
@@ -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..7]
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'
@@ -1,3 +1,3 @@
1
1
  module StackCar
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  FROM CHANGEME/base:latest
2
2
 
3
- ADD https://time.is/just build-time
3
+ ADD http://time.jsontest.com build-time
4
4
  ADD ops/webapp.conf /etc/nginx/sites-enabled/webapp.conf
5
5
  ADD ops/env.conf /etc/nginx/main.d/env.conf
6
6
  ADD . $APP_HOME
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.6.1
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-04-24 00:00:00.000000000 Z
11
+ date: 2018-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler