2024-08-11 09:09:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ -n "$CI" ]; then
|
|
|
|
mkdir $SECURE_FILES_DOWNLOAD_PATH
|
2024-08-23 20:53:35 +00:00
|
|
|
echo "$BUILDER_PUBLIC_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519.pub
|
|
|
|
echo "$BUILDER_PRIVATE_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519
|
2024-08-11 10:31:31 +00:00
|
|
|
chmod -R 600 $SECURE_FILES_DOWNLOAD_PATH
|
2024-08-11 09:09:04 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
eval "$(ssh-agent -s)"
|
|
|
|
ssh-add $SECURE_FILES_DOWNLOAD_PATH/id_ed25519
|