From adbba165a6a866ab5e369ed5a83e4d2c84bf45e7 Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Sun, 22 Sep 2024 23:13:52 +0200 Subject: [PATCH] fix(ci/cd): Missing apt update, wrong exit code --- .gitea/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: