test actions

This commit is contained in:
David Hiendl 2023-10-20 15:24:33 +02:00
parent c27246f7f6
commit ae7cb18072

View File

@ -114,13 +114,7 @@ runs:
run: | run: |
# TODO candidate for extraction to common information gathering role # TODO candidate for extraction to common information gathering role
# extract base hostname from server url # extract base hostname from server url
re="^(https)(:\/\/|@)([^\/:]+)[\/:]([^\/:]+)\/(.+)*$" CI_REGISTRY=$(echo $GITHUB_SERVER_URL | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')
if [[ $GITHUB_SERVER_URL =~ $re ]]; then
CI_REGISTRY=${BASH_REMATCH[3]}
else
echo "Failed to extract hostname"
exit 1
fi
echo "CI_REGISTRY=$CI_REGISTRY" >> $GITHUB_ENV echo "CI_REGISTRY=$CI_REGISTRY" >> $GITHUB_ENV
echo "extract CI_REGISTRY=$CI_REGISTRY" echo "extract CI_REGISTRY=$CI_REGISTRY"