Fix release_habitat rake task

A change made to how we generate the Gemfile during the Habitat build process
means we cannot have the PLAN_CONTEXT be the "habitat" directory but instead
need it to be the repo root itself.

Also changed to the preferred `hab pkg build` command instead of the original
`hab studio build` command.

Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
Adam Leff 2017-05-31 17:50:19 -04:00
parent 5d3abb0289
commit bb66bb2193
No known key found for this signature in database
GPG key ID: 7A5136DE1C1112F8

View file

@ -175,7 +175,7 @@ task :release_habitat do
raise "Please set the HAB_AUTH_TOKEN environment variable"
end
cmd = "echo #{version} > ./habitat/VERSION && "\
"hab studio build ./habitat && " \
"hab pkg build . && " \
"hab pkg upload ./results/*.hart"
puts "--> #{cmd}"
sh('sh', '-c', cmd)