Browse Source

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.
pull/1438/head
Florian Zschocke 1 year ago
parent
commit
73e5faac4b
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      .github/workflows/nightly-build.yml

+ 7
- 7
.github/workflows/nightly-build.yml View 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:

Loading…
Cancel
Save