From 72683b2d3453671c444aefe6cc5f926f0dc21ada Mon Sep 17 00:00:00 2001 From: SonOfLope Date: Tue, 17 Sep 2024 15:15:01 -0400 Subject: [PATCH] Issue #154 : adds fix for workflow dispatch caller --- .../workflow-build-push-container-github-registry.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-build-push-container-github-registry.yml b/.github/workflows/workflow-build-push-container-github-registry.yml index 0ca20b9..0595263 100644 --- a/.github/workflows/workflow-build-push-container-github-registry.yml +++ b/.github/workflows/workflow-build-push-container-github-registry.yml @@ -60,9 +60,9 @@ jobs: push: true platforms: linux/amd64,linux/arm64 tags: | - ${{ inputs.registry }}/${{ inputs.container-name }}:${{ github.event.number }} + ${{ inputs.registry }}/${{ inputs.container-name }}:${{ github.event.number || github.run_number }} ${{ inputs.registry }}/${{ inputs.container-name }}:${{ inputs.tag }} - ${{ inputs.registry }}/${{ inputs.container-name }}:${{ steps.extract_branch_name.outputs.clean_branch_name }} + ${{ inputs.registry }}/${{ inputs.container-name }}:${{ steps.extract_branch_name.outputs.clean_branch_name || 'latest' }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new