Add docker/login/action.yaml

This commit is contained in:
Zakary Timson 2023-11-24 03:10:54 +00:00
parent 64e1974c18
commit fabe032e66

25
docker/login/action.yaml Normal file
View 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}}