Use script deployment instead of native dpl supermarket provider (#6)
This commit is contained in:
Родитель
699e096041
Коммит
c911529f9d
|
@ -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
|
||||
|
|
6
Rakefile
6
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']
|
||||
|
|
Загрузка…
Ссылка в новой задаче