generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
@@ -29,9 +29,14 @@ runs:
|
|||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
NC='\033[0m' # No Color
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
if [[ -z $(which ${{ inputs.registry_command }}) ]] ; then
|
if [[ -z $(which ${{ inputs.registry_command }}) ]] ; then
|
||||||
echo -e "${RED}❌ Error:${NC}: Cannot locate the ${{ inputs.registry_command }} command"
|
echo -e "${RED}❌ Error:${NC}: Cannot locate the ${{ inputs.registry_command }} command"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "${{ inputs.registry_command }} connection to registry: ${{ inputs.registry_server }}..."
|
echo "${{ inputs.registry_command }} connection to registry: ${{ inputs.registry_server }}..."
|
||||||
|
|
||||||
result=$(${{ inputs.registry_command }} login ${{ inputs.registry_server }} \
|
result=$(${{ inputs.registry_command }} login ${{ inputs.registry_server }} \
|
||||||
-u ${{ inputs.registry_user }} \
|
-u ${{ inputs.registry_user }} \
|
||||||
-p ${{ inputs.registry_password }}) \
|
-p ${{ inputs.registry_password }}) \
|
||||||
|
|||||||
Reference in New Issue
Block a user