Update docker/login/action.yaml
This commit is contained in:
parent
fa791b73f7
commit
d829bfd957
@ -17,6 +17,14 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
description: User password
|
description: User password
|
||||||
default: ${{secrets.DEPLOY_TOKEN}}
|
default: ${{secrets.DEPLOY_TOKEN}}
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: ${{github.repository}}
|
||||||
|
tag:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: ${{github.ref_name}}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@ -24,8 +32,6 @@ runs:
|
|||||||
- name: Creat Image Tag
|
- name: Creat Image Tag
|
||||||
run: echo "URL=$(echo ${{github.server_url}} | sed s%http://%% | sed s%https://%% )" >> $GITHUB_ENV
|
run: echo "URL=$(echo ${{github.server_url}} | sed s%http://%% | sed s%https://%% )" >> $GITHUB_ENV
|
||||||
shell: sh
|
shell: sh
|
||||||
- run: echo docker login -u "${{inputs.user}}" --password "${{inputs.pass}}" "${{env.URL}}"
|
|
||||||
shell: sh
|
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
uses: docker://docker
|
uses: docker://docker
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user