Add docker/login/action.yaml
This commit is contained in:
parent
64e1974c18
commit
fabe032e66
25
docker/login/action.yaml
Normal file
25
docker/login/action.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Docker Login
|
||||||
|
description: Login to Docker Registry
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
registry:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: ${{github.server_url}}
|
||||||
|
user:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: ${{github.owner}}
|
||||||
|
password:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: ${{secret.DEPLOY_TOKEN}}
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Docker Login
|
||||||
|
uses: docker://docker
|
||||||
|
with:
|
||||||
|
entrypoint: docker
|
||||||
|
args: login -u ${{inputs.user}} -p ${{inputs.password}} ${{inputs.registry}}
|
Loading…
Reference in New Issue
Block a user