mirror of
https://gitlab.com/monolithify/base-image-build.git
synced 2024-11-25 14:51:22 +00:00
11 lines
298 B
Bash
11 lines
298 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -n "$CI" ]; then
|
|
mkdir $SECURE_FILES_DOWNLOAD_PATH
|
|
echo $BUILDER_PUBLIC_KEY > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519.pub
|
|
echo $BUILDER_PRIVATE_KEY > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519
|
|
fi
|
|
|
|
eval "$(ssh-agent -s)"
|
|
ssh-add $SECURE_FILES_DOWNLOAD_PATH/id_ed25519 |