From a171b5509bb32d75bf6b416aafc6fa1efcaf7965 Mon Sep 17 00:00:00 2001 From: smf Date: Fri, 12 Apr 2024 15:54:52 +0800 Subject: [PATCH] image name input param --- .github/workflows/publish_docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index 3dd0466..44a77c7 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -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