From 9b6eabced01bf71d16e20a70fb292781df9bf28d Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Sun, 22 Sep 2024 22:52:58 +0200 Subject: [PATCH] fix(ci/cd): Wrong variable name when checking for existing builds --- .gitea/workflows/build.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0a4cf24..354bbbe 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -34,14 +34,16 @@ jobs: - name: Extract tags and labels for Docker id: meta run: | - echo "$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-)" - echo "tag=$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-)" >> $GITHUB_OUTPUT + export VERSION="$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-)" + echo "Version: ${VERSION}" + echo "tag=${VERSION}" >> $GITHUB_OUTPUT shell: bash - name: Check if the image was already built id: check-build-status run: | - if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/$(echo ${{ steps.meta.outputs.tags }})" > /dev/null; then echo "Already existst" && exit 1; else echo "Desn't exist" && exit 0; fi + echo ${{ steps.meta.outputs.tag }} + if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/$(echo ${{ steps.meta.outputs.tag }})" > /dev/null; then echo "Already exists" && exit 1; else echo "Desn't exist" && exit 0; fi - name: Set tag in Dockerfile run: |