generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
50
action.yaml
50
action.yaml
@@ -68,50 +68,14 @@ runs:
|
|||||||
registry_password: ${{ inputs.registry_password }}
|
registry_password: ${{ inputs.registry_password }}
|
||||||
debug: ${{ inputs.debug }}
|
debug: ${{ inputs.debug }}
|
||||||
|
|
||||||
- name: install skopeo
|
- name: Install container tool
|
||||||
if: inputs.push_command == 'skopeo'
|
if: inputs.push_command == 'skopeo' || inputs.push_command == 'podman'
|
||||||
shell: bash
|
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/install-container-tools@main
|
||||||
run: |
|
with:
|
||||||
source "${{ github.action_path }}/../bashlib.sh"
|
tools: ${{ inputs.push_command }}
|
||||||
step "Install software" "skopeo"
|
debug: ${{ inputs.debug }}
|
||||||
|
|
||||||
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
|
- name: Push the images to the serveur
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user