Avoid changing default keychain in CI
Some checks failed
TestFlight / testflight (push) Failing after 25s
Some checks failed
TestFlight / testflight (push) Failing after 25s
This commit is contained in:
@@ -53,7 +53,6 @@ platform :ios do
|
|||||||
|
|
||||||
resolved_keychain_path = ["#{keychain_path}-db", keychain_path].find { |path| File.exist?(path) } || keychain_path
|
resolved_keychain_path = ["#{keychain_path}-db", keychain_path].find { |path| File.exist?(path) } || keychain_path
|
||||||
|
|
||||||
sh("security default-keychain -s #{resolved_keychain_path.shellescape}", log: false)
|
|
||||||
sh("security list-keychains -d user -s #{resolved_keychain_path.shellescape}", log: false)
|
sh("security list-keychains -d user -s #{resolved_keychain_path.shellescape}", log: false)
|
||||||
|
|
||||||
ENV["MATCH_KEYCHAIN_NAME"] = resolved_keychain_path
|
ENV["MATCH_KEYCHAIN_NAME"] = resolved_keychain_path
|
||||||
@@ -67,7 +66,6 @@ platform :ios do
|
|||||||
keychain_password = ENV.fetch("MATCH_KEYCHAIN_PASSWORD")
|
keychain_password = ENV.fetch("MATCH_KEYCHAIN_PASSWORD")
|
||||||
|
|
||||||
sh("security unlock-keychain -p #{keychain_password.shellescape} #{keychain_path.shellescape}", log: false)
|
sh("security unlock-keychain -p #{keychain_password.shellescape} #{keychain_path.shellescape}", log: false)
|
||||||
sh("security default-keychain -s #{keychain_path.shellescape}", log: false)
|
|
||||||
sh("security list-keychains -d user -s #{keychain_path.shellescape}", log: false)
|
sh("security list-keychains -d user -s #{keychain_path.shellescape}", log: false)
|
||||||
sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{keychain_password.shellescape} #{keychain_path.shellescape}", log: false)
|
sh("security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{keychain_password.shellescape} #{keychain_path.shellescape}", log: false)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user