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'