generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
22
action.yaml
22
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user