From 8dd7b67833367eb3b3e7c32a3404c21857ce3c6b Mon Sep 17 00:00:00 2001 From: Izel Levy Date: Tue, 2 Jan 2024 18:30:39 +0200 Subject: [PATCH] Fix step --- .github/workflows/build-push-image.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-push-image.yml b/.github/workflows/build-push-image.yml index a1940e1e..af55f1a9 100644 --- a/.github/workflows/build-push-image.yml +++ b/.github/workflows/build-push-image.yml @@ -31,11 +31,16 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Export docker tag - run: echo "IMAGE_TAG=${{ inputs.image-tag || $(git describe --tags | sed 's/V//') }}" >> $GITHUB_ENV - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/amd64,linux/arm64,windows/amd64 - push: true - tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} \ No newline at end of file + env: + INPUT_TAG: ${{ inputs.image-tag }} + run: | + IMAGE_TAG = ${INPUT_TAG:-$(git describe --tags | sed 's/V//')} + echo $IMAGE_TAG + echo IMAGE_TAG=$IMAGE_TAG >> $GITHUB_ENV +# - name: Build and push +# uses: docker/build-push-action@v5 +# with: +# context: . +# platforms: linux/amd64,linux/arm64,windows/amd64 +# push: true +# tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }} \ No newline at end of file