Actualiser action.yaml

This commit is contained in:
2025-04-14 12:35:45 +02:00
parent 8a260517e8
commit 2f6599c4b2

View File

@@ -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