ci(release-image): Skip digest upload when not pushing images
After #992, builds without registry credentials skip Docker image output but still extract binary artifacts. However, we were still trying to upload digests for images that weren't created. Add conditional check to only upload digests when actually pushing to registry.
This commit is contained in:
parent
4a1091dd06
commit
6cf3c839e4
1 changed files with 1 additions and 0 deletions
|
|
@ -249,6 +249,7 @@ jobs:
|
|||
if-no-files-found: error
|
||||
|
||||
- name: Upload digest
|
||||
if: ${{ env.BUILTIN_REGISTRY_ENABLED == 'true' }}
|
||||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: digests-${{ matrix.slug }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue