Update docker/push/action.yaml
This commit is contained in:
parent
d3c3e1ac37
commit
2863b1c615
@ -2,6 +2,11 @@ name: Docker Push
|
|||||||
description: Push Image to Registry
|
description: Push Image to Registry
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
from:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: Re-tag an existing image
|
||||||
|
default: false
|
||||||
registry:
|
registry:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
@ -25,11 +30,6 @@ inputs:
|
|||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ${{github.ref_name}}
|
default: ${{github.ref_name}}
|
||||||
from:
|
|
||||||
type: string
|
|
||||||
required: false
|
|
||||||
description: Re-tag an existing image
|
|
||||||
default:
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@ -40,7 +40,7 @@ runs:
|
|||||||
|
|
||||||
- name: Tag Image
|
- name: Tag Image
|
||||||
run: |
|
run: |
|
||||||
[[ -n ${{inputs.from}} ]] && docker tag ${{inputs.from}} "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
|
[[ "${{inputs.from}}" != "false" ]] && docker tag "${{inputs.from}}" "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|
||||||
- name: Docker Login
|
- name: Docker Login
|
||||||
|
Loading…
Reference in New Issue
Block a user