2023-11-23 22:14:25 -05:00
|
|
|
name: Docker Push
|
|
|
|
description: Push docker image to registry
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
registry:
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
default: ${{github.server_url}}
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
default: ${{github.repository}}
|
|
|
|
tag:
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
default: ${{github.ref_name}}
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
2023-11-23 22:36:57 -05:00
|
|
|
- name: Creat Image Tag
|
|
|
|
run: echo "URL=$(echo ${{github.server_url}} | sed s%http://%% | sed s%https://%% )" >> $GITHUB_ENV
|
|
|
|
shell: sh
|
2023-11-23 22:14:37 -05:00
|
|
|
- name: Docker Push
|
2023-11-23 22:14:25 -05:00
|
|
|
uses: docker://docker
|
|
|
|
with:
|
|
|
|
entrypoint: docker
|
2023-11-23 22:36:57 -05:00
|
|
|
args: push "${{env.URL}}/${{inputs.name}}:${{inputs.tag}}"
|