chore: check if secure files folder doesnt exist

This commit is contained in:
Radostin Emanuilov 2024-08-28 16:20:16 +01:00
parent d7d81d4049
commit 3497479401
No known key found for this signature in database

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e
if [ -n "$CI" ]; then
if [ -n "$CI" && ! -d "$SECURE_FILES_DOWNLOAD_PATH"]; then
mkdir $SECURE_FILES_DOWNLOAD_PATH
echo -e "$BUILDER_PUBLIC_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519.pub
echo -e "$BUILDER_PRIVATE_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519