Files
registry-login/action.yaml

33 lines
937 B
YAML
Raw Normal View History

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