Update docker/login/action.yaml

This commit is contained in:
Zakary Timson 2023-11-24 03:46:40 +00:00
parent dfaa4155a1
commit 84a4893991

View File

@ -5,14 +5,17 @@ inputs:
registry: registry:
type: string type: string
required: false required: false
description: Docker registry FQDN
default: ${{github.server_url}} default: ${{github.server_url}}
user: user:
type: string type: string
required: false required: false
description: Docker user
default: ${{github.repository_owner}} default: ${{github.repository_owner}}
pass: pass:
type: string type: string
required: false required: false
description: User password
default: ${{secrets.DEPLOY_TOKEN}} default: ${{secrets.DEPLOY_TOKEN}}
runs: runs:
@ -21,10 +24,10 @@ 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.password}}" "${{env.URL}}" - run: echo docker login -u "${{inputs.user}}" --password "${{inputs.pass}}" "${{env.URL}}"
shell: sh shell: sh
- name: Docker Login - name: Docker Login
uses: docker://docker uses: docker://docker
with: with:
entrypoint: docker entrypoint: docker
args: login -u "${{inputs.user}}" --password "${{inputs.password}}" "${{env.URL}}" args: login -u "${{inputs.user}}" --password "${{inputs.pass}}" "${{env.URL}}"