Skip to content

Commit 8737c28

Browse files
committed
Fix for build step
1 parent c12c53d commit 8737c28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docker.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
echo "date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
7373
7474
- name: Build and push Docker image
75+
id: build
7576
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
7677
with:
7778
context: .
@@ -89,7 +90,7 @@ jobs:
8990
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},annotation-index.org.opencontainers.image.description=torrBotGo - Telegram bot for torrent management
9091

9192
- name: Generate artifact attestation
92-
if: github.event_name != 'pull_request'
93+
if: github.event_name != 'pull_request' && steps.build.outputs.digest != ''
9394
uses: actions/attest-build-provenance@v1
9495
with:
9596
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

0 commit comments

Comments
 (0)