Update docker/action.yaml
This commit is contained in:
parent
774b3101ea
commit
5cf2c95549
@ -5,15 +5,18 @@ inputs:
|
|||||||
registry:
|
registry:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
default: $GITHUB_SERVER_URL
|
||||||
registry_user:
|
registry_user:
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
default: $GITHUB_ACTOR
|
||||||
registry_pass:
|
registry_pass:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
image:
|
image:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
default: $GITHUB_REPOSITORY
|
||||||
tag:
|
tag:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@ -23,9 +26,7 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: |
|
run: echo "${{inputs.registry_pass}}" | docker login -u "${{inputs.registry_user}}" --password-stdin "${{inputs.registry}}"
|
||||||
REGISTRY=$([ -n "${{inputs.registry}}" ] && echo "${{inputs.registry}}" || echo "$GITHUB_SERVER_URL") \
|
|
||||||
echo "${{inputs.registry_pass}}" | docker login -u "${{inputs.registry_user}}" --password-stdin "$REGISTRY"
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user