From 8abe5065da4575e41c625fd5eb329059809d064b Mon Sep 17 00:00:00 2001 From: Luke Repko Date: Tue, 6 Aug 2024 12:26:37 -0500 Subject: [PATCH] fix: push events don't inherit default inputs --- .github/workflows/release-gnocchi.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-gnocchi.yaml b/.github/workflows/release-gnocchi.yaml index c3553f5e..d09313dd 100644 --- a/.github/workflows/release-gnocchi.yaml +++ b/.github/workflows/release-gnocchi.yaml @@ -19,6 +19,7 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} + PUSH_VERSION: 4.6.2 # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: @@ -60,8 +61,8 @@ jobs: file: Containerfiles/GnocchiRXT-Containerfile push: true tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/gnocchi:${{ github.event.inputs.imageTag }} - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/gnocchi:${{ github.event.inputs.imageTag }}-${{ env.MY_DATE }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/gnocchi:${{ github.event.inputs.imageTag || env.PUSH_VERSION }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/gnocchi:${{ github.event.inputs.imageTag || env.PUSH_VERSION }}-${{ env.MY_DATE }} labels: ${{ steps.meta.outputs.labels }} build-args: | VERSION=${{ github.event.inputs.imageTag }}