Initial commit
This commit is contained in:
40
action.yml
Normal file
40
action.yml
Normal file
@ -0,0 +1,40 @@
|
||||
name: Docker-Private-Registry-SSH-login
|
||||
description: Action to log in to a private docker registry on a host reachable via SSH.
|
||||
author: "Allan Eising"
|
||||
branding:
|
||||
icon: "unlock"
|
||||
color: "yellow"
|
||||
|
||||
inputs:
|
||||
ssh_private_key:
|
||||
description: "Private SSH key used for logging into remote system."
|
||||
required: true
|
||||
ssh_host:
|
||||
description: Host to deploy to.
|
||||
required: true
|
||||
ssh_port:
|
||||
description: SSH Port
|
||||
default: 22
|
||||
required: true
|
||||
ssh_user:
|
||||
description: Remote user name.
|
||||
required: true
|
||||
registry:
|
||||
description: Registry hostname
|
||||
required: true
|
||||
registry_username:
|
||||
description: User to log in with on the registry.
|
||||
registry_password:
|
||||
description: Password or API token for the registry.
|
||||
|
||||
runs:
|
||||
using: docker
|
||||
image: Dockerfile
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }}
|
||||
SSH_HOST: ${{ inputs.ssh_host }}
|
||||
SSH_PORT: ${{ inputs.ssh_port }}
|
||||
SSH_USER: ${{ inputs.ssh_user }}
|
||||
REGISTRY_HOST: ${{ inputs.registry }}
|
||||
REGISTRY_USER: ${{ inputs.registry_username }}
|
||||
REGISTRY_PASSWORD: ${{ inputs.registry_password }}
|
||||
Reference in New Issue
Block a user