ci: remove signing key when done

This commit is contained in:
Aaron Bieber 2023-06-16 09:28:51 -06:00
parent 7dac7402d2
commit 569bc7ba7c
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

2
bin/ci
View File

@ -99,4 +99,4 @@ else
fi fi
fi fi
finish finish_ci

View File

@ -105,11 +105,18 @@ start_ci() {
lock lock
agentHasKey "$(cat /run/secrets/ci_ed25519_pub | awk '{print $2}')" || agentHasKey "$(cat /run/secrets/ci_ed25519_pub | awk '{print $2}')" ||
ssh-add /run/secrets/ci_ed25519_key ssh-add /run/secrets/ci_ed25519_key
agentHasKey "$(cat /run/secrets/ci_signing_ed25519_pub | awk '{print $2}')" ||
ssh-add /run/secrets/ci_signing_ed25519_key
} }
finish() { finish() {
ssh-add -d /run/secrets/manager_key ssh-add -d /run/secrets/manager_key
exit 0
}
finish_ci() {
ssh-add -d /run/secrets/ci_ed25519_key ssh-add -d /run/secrets/ci_ed25519_key
ssh-add -d /run/secrets/ci_signing_ed25519_key
exit 0 exit 0
} }