From 26b3780eb51a2aa3f436add58fb4dcb9ec37c7a4 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 26 Dec 2025 15:15:41 +0100 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/action.yaml b/action.yaml index 81fd0a3..5f1d848 100644 --- a/action.yaml +++ b/action.yaml @@ -105,27 +105,19 @@ runs: version_file: ${{ inputs.version_file }} debug: ${{ inputs.debug }} - - name: install podman - if: inputs.build_command == 'podman' || inputs.tag_command == 'podman' || inputs.push_command == 'podman' - shell: bash - run: | - source "${{ github.action_path }}/../bashlib.sh" - step "Install software" "podman" + - name: Install container tool (push) + if: inputs.push_command == 'skopeo' || inputs.push_command == 'podman' + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/install-container-tools@main + with: + tools: ${{ inputs.push_command }} + debug: ${{ inputs.debug }} - if command -v podman >/dev/null 2>&1; then - success "Already installed" "Podman found" - exit 0 - fi - - check_command apt-get - - apt-get update - - if apt-get -y install podman ; then - success "Success" "Podman installed" - else - error "Install failed" "Could not install Podman" - fi + - name: Install container tool (tag) + if: inputs.tag_command == 'skopeo' || inputs.tag_command == 'podman' + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/install-container-tools@main + with: + tools: ${{ inputs.tag_command }} + debug: ${{ inputs.debug }} - name: Build image starting if: env.HEALTHCHECK_ENABLED == 'true'