Files
registry-login/action.yaml
2025-04-14 08:49:17 +02:00

33 lines
937 B
YAML

name: 'Connect to a docker registry'
description: 'Connection to a docker registry using podman'
author: 'Eric Coissac'
inputs:
registry_server:
description: 'Address of the image registry server'
required: false
default: "niepce.petite-maison-orange.fr"
registry_user:
description: 'User used for the connection to the image registry'
required: false
default: ${{ secrets.PMO_REGISTRY_USER }}
registry_password:
description: 'Password used for the connection to the image registry'
required: false
default: ${{ secrets.PMO_REGISTRY_PASSWORD }}
runs:
using: 'composite'
steps:
- name: Podman connection to the registry
shell: bash
run: |
echo "Connection to registry: ${{ inputs.registry_server }}..."
podman login ${{ inputs.registry_server }} \
-u ${{ inputs.registry_user }} \
-p ${{ inputs.registry_password }}