From 9e9f6d37d25a704d569766104adc03c9afd32938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Tue, 21 Nov 2023 20:34:41 +0100 Subject: [PATCH] fix(cicd): wrong command placement --- .gitea/workflows/build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1e3f5bc..f220851 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -13,22 +13,23 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Extract Version Tag + - name: Check is image already exists id: extract-version run: | git clone https://github.com/ONLYOFFICE/DocumentServer cd DocumentServer - export docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-) + docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-) echo $docker_tag - if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/${docker_tag}" > /dev/null; then exit 1; fi - rm -rf DocumentServer echo "docker_tag=${docker_tag}" >> GITHUB_OUTPUT + if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/${docker_tag}" > /dev/null; then exit 1; fi shell: bash - - name: test + - name: Remove temporary files if: steps.check-existing.conclusion == 'success' - id: test - run: echo ${{ steps.extract-version.outputs.docker_tag }} + id: remove-temp + run: | + echo ${{ steps.extract-version.outputs.docker_tag }} + rm -rf DocumentServer shell: bash - name: Install Docker