From 9a134fc2ba7e86f62e8d0f9e23386ceb6ee05feb 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:31:19 +0100 Subject: [PATCH] fix(cicd): try different command --- .gitea/workflows/build.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 700dc3c..1e3f5bc 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -13,29 +13,22 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Check is image already exists - id: check-existing + - name: Extract Version Tag + id: extract-version run: | git clone https://github.com/ONLYOFFICE/DocumentServer cd DocumentServer - docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-) + export 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 - shell: bash - - - name: Extract Version Tag - if: steps.check-existing.conclusion == 'success' - id: extract-version - # run: echo "docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-)" >> GITHUB_OUTPUT - run: echo "docker_tag='$(git describe --tags --abbrev=0 | cut -d \'v\' -f2-)'" >> GITHUB_OUTPUT - shell: bash - - - name: Remove temporary files - if: steps.check-existing.conclusion == 'success' - id: remove-temp - run: | - echo ${{ steps.extract-version.outputs.docker_tag }} rm -rf DocumentServer + echo "docker_tag=${docker_tag}" >> GITHUB_OUTPUT + shell: bash + + - name: test + if: steps.check-existing.conclusion == 'success' + id: test + run: echo ${{ steps.extract-version.outputs.docker_tag }} shell: bash - name: Install Docker