We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c12c53d commit 8737c28Copy full SHA for 8737c28
1 file changed
.github/workflows/docker.yaml
@@ -72,6 +72,7 @@ jobs:
72
echo "date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
73
74
- name: Build and push Docker image
75
+ id: build
76
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
77
with:
78
context: .
@@ -89,7 +90,7 @@ jobs:
89
90
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},annotation-index.org.opencontainers.image.description=torrBotGo - Telegram bot for torrent management
91
92
- name: Generate artifact attestation
- if: github.event_name != 'pull_request'
93
+ if: github.event_name != 'pull_request' && steps.build.outputs.digest != ''
94
uses: actions/attest-build-provenance@v1
95
96
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
0 commit comments