mirror of
https://gitlab.com/monolithify/base-image-build.git
synced 2024-11-22 07:21:22 +00:00
chore: check if secure files folder doesnt exist
This commit is contained in:
parent
d7d81d4049
commit
3497479401
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -n "$CI" ]; then
|
if [ -n "$CI" && ! -d "$SECURE_FILES_DOWNLOAD_PATH"]; then
|
||||||
mkdir $SECURE_FILES_DOWNLOAD_PATH
|
mkdir $SECURE_FILES_DOWNLOAD_PATH
|
||||||
echo -e "$BUILDER_PUBLIC_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519.pub
|
echo -e "$BUILDER_PUBLIC_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519.pub
|
||||||
echo -e "$BUILDER_PRIVATE_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519
|
echo -e "$BUILDER_PRIVATE_KEY" > $SECURE_FILES_DOWNLOAD_PATH/id_ed25519
|
||||||
|
Loading…
Reference in New Issue
Block a user