Skip to content

Commit 0a9ad80

Browse files
committed
add a cleanup script to delete secrets
1 parent f7ec36e commit 0a9ad80

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/ContinuousIntegration.yml

+11
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,14 @@ jobs:
3333
run: code/ci_actions/04_unit_tests.sh
3434
- name: UITest
3535
run: code/ci_actions/05_ui_tests.sh
36+
37+
cleanup:
38+
39+
needs: test
40+
41+
runs-on: self-hosted
42+
43+
steps:
44+
45+
- name: cleanup
46+
run: code/ci_actions/06_cleanup.sh

code/ci_actions/06_cleanup.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# delete build secrets
4+
echo "Delete certificates directory"
5+
rm -rf ~/certificates
6+
7+
KEYCHAIN_NAME=dev.keychain
8+
if [ -f $HOME/Library/Keychains/"${KEYCHAIN_NAME}"-db ]; then
9+
echo "Deleting old ${KEYCHAIN_NAME} keychain"
10+
security delete-keychain "${KEYCHAIN_NAME}"
11+
fi
12+
13+
# no need to delete the system keychain
14+
# it only contains the Apple WWDR public certificate

0 commit comments

Comments
 (0)