From 73e5faac4b17e8ec26117939d334af744f855427 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Mon, 7 Nov 2022 22:59:31 +0100 Subject: [PATCH] ci: Delete nightly build artefact after testing the container Leave the artefact until after the container has been built and tested. In case the test fails the artefact can be still downloaded to analyse what might have caused the container build or test to fail. --- .github/workflows/nightly-build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 5c70dd08..05a75845 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -144,13 +144,6 @@ jobs: with: name: gitblit-nightly - # Delete the artifact unless this is the official Gitblit repo - - uses: geekyeggo/delete-artifact@v2 - if: ${{ github.repository != 'gitblit/gitblit' }} - with: - name: gitblit-nightly - failOnError: false - - name: Extract snapshot version id: gb-version run: | @@ -220,6 +213,13 @@ jobs: run: | dgoss run -p 8080:8080 -p 8443:8443 --tmpfs /var/opt/gitblit/temp gitblit/gitblit:nightly + # Delete the artifact unless this is the official Gitblit repo + - uses: geekyeggo/delete-artifact@v2 + if: ${{ github.repository != 'gitblit/gitblit' }} + with: + name: gitblit-nightly + failOnError: false + - name: Push docker image to registry uses: docker/build-push-action@v3 with: -- 2.39.5