diff --git a/action.yaml b/action.yaml index dd28df3..9964449 100644 --- a/action.yaml +++ b/action.yaml @@ -68,50 +68,14 @@ runs: registry_password: ${{ inputs.registry_password }} debug: ${{ inputs.debug }} - - name: install skopeo - if: inputs.push_command == 'skopeo' - shell: bash - run: | - source "${{ github.action_path }}/../bashlib.sh" - step "Install software" "skopeo" - - if command -v skopeo >/dev/null 2>&1; then - success "Already installed" "Skopeo found" - exit 0 - fi - - check_command apt-get - - apt-get update - - if apt-get -y install skopeo ; then - success "Success" "Skopeo installed" - else - error "Install failed" "Could not install Skopeo" - fi - - - name: install podman - if: inputs.push_command == 'podman' - shell: bash - run: | - source "${{ github.action_path }}/../bashlib.sh" - step "Install software" "podman" - - 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 + 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 }} + - name: Push the images to the serveur shell: bash run: |