generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
21
action.yaml
21
action.yaml
@@ -28,11 +28,13 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Load bash library
|
||||||
|
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/bash-library@main
|
||||||
- name: Set debug mode
|
- name: Set debug mode
|
||||||
if: ${{ inputs.debug == true }}
|
if: ${{ inputs.debug == true }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
source "${{ github.action_path }}/bashlib.sh"
|
source "${{ github.action_path }}/../bashlib.sh"
|
||||||
export DEBUG="ON"
|
export DEBUG="ON"
|
||||||
echo "DEBUG=ON" >> $GITEA_ENV
|
echo "DEBUG=ON" >> $GITEA_ENV
|
||||||
debug Debug switch on
|
debug Debug switch on
|
||||||
@@ -40,16 +42,19 @@ runs:
|
|||||||
- name: Podman connection to the registry
|
- name: Podman connection to the registry
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
source "${{ github.action_path }}/bashlib.sh"
|
source "${{ github.action_path }}/../bashlib.sh"
|
||||||
|
|
||||||
check_command ${{ inputs.registry_command }}
|
check_command ${{ inputs.registry_command }}
|
||||||
|
|
||||||
step "${{ inputs.registry_command }} connection to registry" "${{ inputs.registry_server }}..."
|
step "${{ inputs.registry_command }} connection to registry" "${{ inputs.registry_server }}..."
|
||||||
|
|
||||||
result=$(${{ inputs.registry_command }} login ${{ inputs.registry_server }} \
|
|
||||||
-u ${{ inputs.registry_user }} \
|
if result=$(${{ inputs.registry_command }} login ${{ inputs.registry_server }} \
|
||||||
-p ${{ inputs.registry_password }}) \
|
-u ${{ inputs.registry_user }} \
|
||||||
&& success "${result}" \
|
-p ${{ inputs.registry_password }})
|
||||||
|| error "Error" "${result}"
|
then
|
||||||
|
success "${result}" \
|
||||||
|
else
|
||||||
|
error "Error" "${result}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user