Update docker/push/action.yaml
This commit is contained in:
parent
84a4893991
commit
c62c486350
@ -6,6 +6,16 @@ inputs:
|
|||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ${{github.server_url}}
|
default: ${{github.server_url}}
|
||||||
|
user:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: Docker user
|
||||||
|
default: ${{github.repository_owner}}
|
||||||
|
pass:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: User password
|
||||||
|
default: ${{secrets.DEPLOY_TOKEN}}
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
@ -25,4 +35,6 @@ runs:
|
|||||||
uses: docker://docker
|
uses: docker://docker
|
||||||
with:
|
with:
|
||||||
entrypoint: docker
|
entrypoint: docker
|
||||||
args: push "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
|
args: |
|
||||||
|
login -u "${{inputs.user}}" --password "${{inputs.pass}}" "${{env.URL}}" &&
|
||||||
|
docker push "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
|
||||||
|
Loading…
Reference in New Issue
Block a user