generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
49
action.yaml
49
action.yaml
@@ -67,8 +67,53 @@ runs:
|
|||||||
registry_user: ${{ inputs.registry_user }}
|
registry_user: ${{ inputs.registry_user }}
|
||||||
registry_password: ${{ inputs.registry_password }}
|
registry_password: ${{ inputs.registry_password }}
|
||||||
debug: ${{ inputs.debug }}
|
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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
source "${{ github.action_path }}/../bashlib.sh"
|
source "${{ github.action_path }}/../bashlib.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user