mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
add delivery publish to github
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
1e94135304
commit
3a8f1e5984
4 changed files with 24 additions and 1 deletions
|
@ -3,6 +3,8 @@ source 'https://supermarket.chef.io'
|
|||
metadata
|
||||
|
||||
group :delivery do
|
||||
cookbook 'delivery-sugar-extras', git: 'https://github.com/chef-cookbooks/delivery-sugar-extras.git'
|
||||
cookbook 'delivery-sugar', git: 'https://github.com/chef-cookbooks/delivery-sugar.git'
|
||||
cookbook 'delivery_build', git: 'https://github.com/chef-cookbooks/delivery_build'
|
||||
cookbook 'test', path: './test/fixtures/cookbooks/test'
|
||||
cookbook 'delivery-truck', git: 'https://github.com/chef-cookbooks/delivery-truck.git'
|
||||
end
|
||||
|
|
|
@ -6,3 +6,5 @@ version '0.1.0'
|
|||
|
||||
depends 'docker', '~> 1.0'
|
||||
depends 'fancy_execute'
|
||||
depends 'delivery-truck'
|
||||
depends 'delivery-sugar-extras'
|
||||
|
|
|
@ -4,12 +4,26 @@
|
|||
#
|
||||
# Copyright (c) 2015 Chef Software Inc., All Rights Reserved.
|
||||
|
||||
include_recipe 'delivery-truck::default'
|
||||
|
||||
# create a persistant gem cache per builder for the entire project
|
||||
gem_cache = File.join(node['delivery']['workspace']['root'], "../../../project_gem_cache")
|
||||
directory gem_cache do
|
||||
# set the owner to the dbuild so that the other recipes can write to here
|
||||
owner node['delivery_builder']['build_user']
|
||||
mode "0755"
|
||||
recursive true
|
||||
action :create
|
||||
end
|
||||
|
||||
# ensure we always have a docker group with the build user as a member
|
||||
group 'docker' do
|
||||
members [node['delivery_builder']['build_user']]
|
||||
end
|
||||
|
||||
package 'build-essential'
|
||||
|
||||
# get docker
|
||||
docker_service 'dockerd' do
|
||||
action [:delete, :create, :start]
|
||||
host 'unix:///var/run/docker.sock'
|
||||
|
|
|
@ -4,6 +4,11 @@
|
|||
"name": "build-cookbook",
|
||||
"path": ".delivery/build-cookbook"
|
||||
},
|
||||
"delivery-truck": {
|
||||
"publish": {
|
||||
"github": "chef/vulcanosec"
|
||||
}
|
||||
},
|
||||
"skip_phases": [
|
||||
"syntax",
|
||||
"security",
|
||||
|
|
Loading…
Reference in a new issue