diff --git a/.travis.yml b/.travis.yml index 07ace86..6fad20d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,9 +14,7 @@ before_install: - openssl aes-256-cbc -K $encrypted_92c995406a15_key -iv $encrypted_92c995406a15_iv -in supermarket.pem.enc -out supermarket.pem -d deploy: - provider: chef-supermarket - user_id: vsts_agent_cookbook - client_key: supermarket.pem - cookbook_category: Others + provider: script + script: chef exec rake release on: tags: true diff --git a/Rakefile b/Rakefile index b3e5bb0..bb1fc9c 100644 --- a/Rakefile +++ b/Rakefile @@ -25,6 +25,12 @@ namespace :kitchen do end end +task :supermarket do + exec 'chef exec knife supermarket share vsts_agent Other -o .. -k supermarket.pem -u vsts_agent_cookbook' +end + task :default => ['style', 'kitchen:linux'] task :travis => ['style'] + +task :release => ['supermarket']