Update docker/push/action.yaml
This commit is contained in:
parent
7861ce7186
commit
ce236e36a0
@ -1,10 +1,11 @@
|
|||||||
name: Docker Push
|
name: Docker Login
|
||||||
description: Push docker image to registry
|
description: Login to Docker Registry
|
||||||
|
|
||||||
inputs:
|
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
|
||||||
@ -28,11 +29,10 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Creat Image Tag
|
- name: Format Registry URL
|
||||||
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
|
||||||
- name: Docker Push
|
- name: Docker Login
|
||||||
uses: docker://docker
|
uses: docker://docker
|
||||||
with:
|
with:
|
||||||
entrypoint: docker
|
args: /bin/sh -c "docker login -u ${{inputs.user}} -p ${{inputs.pass}} ${{env.URL}} && docker push ${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
|
||||||
args: login -u "${{inputs.user}}" -p "${{inputs.pass}}" "${{env.URL}}" && docker push "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user