Update docker/action.yaml
This commit is contained in:
parent
5f6f25d02b
commit
cef8ae8b24
@ -5,19 +5,18 @@ inputs:
|
|||||||
registry:
|
registry:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
image:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
tag:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
secrets:
|
|
||||||
registry_user:
|
registry_user:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
registry_pass:
|
registry_pass:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
image:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
tag:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@ -26,7 +25,7 @@ runs:
|
|||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
run: |
|
run: |
|
||||||
REGISTRY=$([ -n "${{inputs.registry}}" ] && echo "${{inputs.registry}}" || echo "$GITHUB_SERVER_URL")
|
REGISTRY=$([ -n "${{inputs.registry}}" ] && echo "${{inputs.registry}}" || echo "$GITHUB_SERVER_URL")
|
||||||
echo "${{secrets.registry_pass}}" | docker login -u "${{secrets.registry_user}}" --password-stdin "$REGISTRY"
|
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