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.
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: |
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: