Skip to content

Commit dfdacbe

Browse files
committed
update the action
1 parent bac1ec3 commit dfdacbe

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/publish_container.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,24 @@ jobs:
7171
with:
7272
sbom: sbom-image-latest.json
7373
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
74-
subject-digest: ${{ steps.build-push-latest.outputs.digest }}
74+
subject-digest: ${{ steps.build-push-latest.outputs.digest }}
75+
- name: Create or Update GitHub Release
76+
uses: softprops/action-gh-release@v1
77+
with:
78+
# Set the tag name and release name
79+
tag_name: ${{ github.ref }}
80+
release_name: Release ${{ github.ref }}
81+
# Add information about the Docker image to the release notes
82+
body: |
83+
Docker Image Tag: ${{ steps.meta.outputs.tags }}
84+
```
85+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
86+
```
87+
Verify the contents of the image:
88+
```
89+
gh attestation verify oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} --owner ${{ github.actor }}
90+
```
91+
# Set the release to draft if you want to manually review it before publishing
92+
# draft: true
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)