From c2bcfd3b70747b4420c0ea49e9ecb455ec11cfa7 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 26 Dec 2025 12:58:53 +0100 Subject: [PATCH] Actualiser action.yaml --- action.yaml | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index 3b38e99..cb216cb 100644 --- a/action.yaml +++ b/action.yaml @@ -67,8 +67,53 @@ runs: registry_user: ${{ inputs.registry_user }} registry_password: ${{ inputs.registry_password }} debug: ${{ inputs.debug }} - -- name: Push the images to the serveur + + - 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: Push the images to the serveur shell: bash run: | source "${{ github.action_path }}/../bashlib.sh"