Removed signing.key shortcut. too complicated
This commit is contained in:
parent
e41cc41100
commit
9b27b4f650
@ -22,19 +22,13 @@ else
|
|||||||
IMAGE_NAMES=("${@}")
|
IMAGE_NAMES=("${@}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#prevent missing file
|
|
||||||
if [ ! -e "${CUR_DIR}/signing.key" ]; then
|
|
||||||
touch "${CUR_DIR}/signing.key"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#This will take a long time the first time
|
#This will take a long time the first time
|
||||||
for IMAGE_NAME in "${IMAGE_NAMES[@]}"; do
|
for IMAGE_NAME in "${IMAGE_NAMES[@]}"; do
|
||||||
NAME=$(basename ${IMAGE_NAME%.*})
|
NAME=$(basename ${IMAGE_NAME%.*})
|
||||||
#If you do decide to use the same key for all, this makes it easier. Only
|
#If you do decide to use the same key for all, this makes it easier. Only
|
||||||
#creates keys for git-lfs_* images, none of the others should be signing.
|
#creates keys for git-lfs_* images, none of the others should be signing.
|
||||||
if [[ "${NAME}" == git-lfs_* ]] && [ -e ${CUR_DIR}/signing.key ] && \
|
if [[ "${NAME}" == git-lfs_* ]] && [ ! -e ${CUR_DIR}/${NAME}.key ]; then
|
||||||
[ ! -e ${CUR_DIR}/${NAME}.key ]; then
|
touch ${CUR_DIR}/${NAME}.key
|
||||||
cp ${CUR_DIR}/signing.key ${CUR_DIR}/${NAME}.key || :
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Docker building ${NAME}
|
echo Docker building ${NAME}
|
||||||
|
Loading…
Reference in New Issue
Block a user