login-action/action.yml

43 lines
1.3 KiB
YAML
Raw Normal View History

2020-08-15 14:45:36 +02:00
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: 'Docker Login'
description: 'GitHub Action to login against a Docker registry'
2020-08-21 16:48:16 +02:00
author: 'docker'
2020-08-15 14:45:36 +02:00
branding:
2020-08-21 16:48:16 +02:00
icon: 'anchor'
2020-08-15 14:45:36 +02:00
color: 'blue'
inputs:
registry:
description: 'Server address of Docker registry. If not set then will default to Docker Hub'
required: false
username:
description: 'Username used to log against the Docker registry'
required: false
2020-08-15 14:45:36 +02:00
password:
description: 'Password or personal access token used to log against the Docker registry'
required: false
ecr:
description: 'Specifies whether the given registry is ECR (auto, true or false)'
default: 'auto'
required: false
2020-08-15 14:45:36 +02:00
logout:
description: 'Log out from the Docker registry at the end of a job'
default: 'true'
required: false
http_codes_to_retry:
description: 'Comma separated list of HTTP error codes we want to retry'
default: '408,500,502,504'
max_attempts:
description: 'Overall maximum number of attempts we will make trying to login'
default: '1'
required: false
retry_timeout:
description: 'Timeout between retries, in seconds'
default: '15'
required: false
2020-08-15 14:45:36 +02:00
runs:
using: 'node20'
2020-08-15 14:45:36 +02:00
main: 'dist/index.js'
post: 'dist/index.js'