Ignore certificate import error.

This commit is contained in:
Roman Telezhynskyi 2024-03-12 17:02:38 +02:00
parent 45decf0b1f
commit 23e0631fbd

View File

@ -342,7 +342,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE
- sudo security import $HOME/AppleWWDRCAG3.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
# 2) Developer Authentication Certification Authority
- curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign || true
# 3) Developer ID
- security import certificate.p12 -k $HOME/Library/Keychains/build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
# Delete the files, we no longer need them
@ -428,7 +428,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE
macos_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:14
image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
<< : *MACOS_TASK_TEMPLATE
env:
DEPLOY: "true"