From fd38c9a98b5f07b21619641e1635feea6efc7caa Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Sat, 27 Jan 2024 03:23:59 +0100 Subject: [PATCH] fix: Wrong working directory, simplified to 1 command (+ shell output) --- .gitea/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 05e3592..b6a1b51 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -37,9 +37,12 @@ jobs: - name: Extract tags and labels for Docker id: meta + # working-directory: upstream run: | - export latest_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-) - # export tags="jiriks74/onlyoffice-documentserver:$(echo $latest_tag),jiriks74/onlyoffice-documentserver:latest" + # export latest_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-) + # export tags="jiriks74/onlyoffice-documentserver:$(git describe --tags --abbrev=0 | cut -d 'v' -f2-),jiriks74/onlyoffice-documentserver:latest" + echo "tags=jiriks74/onlyoffice-documentserver:$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-),jiriks74/onlyoffice-documentserver:latest" >> "$GITEA_OUTPUT" + echo "tags=jiriks74/onlyoffice-documentserver:$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-),jiriks74/onlyoffice-documentserver:latest" # echo $tags # echo "tags=$(echo $tags)" >> "$GITEA_OUTPUT" # echo "tags=$(echo $tags)"