diff --git a/action.yaml b/action.yaml index 0930d3f..f6bd68d 100644 --- a/action.yaml +++ b/action.yaml @@ -84,3 +84,25 @@ runs: version_file: ${{ inputs.version_file }} debug: ${{ inputs.debug }} + - name: install podman + if: inputs.build_command == 'podman' || inputs.tag_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 +