]> source.dussan.org Git - gitblit.git/commitdiff
ci: Delete nightly build artefact after testing the container
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Mon, 7 Nov 2022 21:59:31 +0000 (22:59 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Mon, 7 Nov 2022 21:59:31 +0000 (22:59 +0100)
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

index 5c70dd08bf30cb3c166b1bd29c5ba863b86ca254..05a758451ea523db1ac7edeb88f2fba5dcec1998 100644 (file)
@@ -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: