image name input param
This commit is contained in:
6
.github/workflows/publish_docker.yml
vendored
6
.github/workflows/publish_docker.yml
vendored
@@ -29,6 +29,10 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: 'linux/amd64,linux/arm64'
|
||||
docker_image_name:
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
publish-docker-image:
|
||||
@@ -66,7 +70,7 @@ jobs:
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: | # my-docker-hub-namespace/my-docker-hub-repository
|
||||
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}
|
||||
${{ secrets.REGISTRY_HOST }}/${{ inputs.docker_image_name }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
|
||||
Reference in New Issue
Block a user