diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 2e489b0..5ffeb2c 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -30,12 +30,14 @@ jobs: id: check-build-status run: | 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 0; else echo "Desn't exist" && exit 0; fi + 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: | sed -i "s/ARG PACKAGE_VERSION=/ARG PACKAGE_VERSION=$(echo ${{ steps.meta.outputs.tag }} | cut -d ':' -f2)/g" Dockerfile + - name: Update repositories + run: sudo apt update - name: Install Docker uses: awalsh128/cache-apt-pkgs-action@latest with: