Skip to content

Commit 71b2a30

Browse files
committed
test new action
1 parent a0a1986 commit 71b2a30

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/publish_container.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ jobs:
4343
tags: |
4444
type=ref,event=branch
4545
type=sha,format=long
46-
- name: update release
47-
id: update_release
48-
uses: tubone24/[email protected]
49-
env:
50-
GITHUB_TOKEN: ${{ github.token }}
51-
with:
52-
body: |
53-
Docker Image Tag: ${{ steps.meta.outputs.tags }}
54-
```
55-
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
56-
```
57-
Verify the contents of the image:
58-
```
59-
gh attestation verify oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} --owner ${{ github.actor }}
60-
```
6146
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
6247
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
6348
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
@@ -85,4 +70,19 @@ jobs:
8570
with:
8671
sbom: sbom-image-latest.json
8772
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
88-
subject-digest: ${{ steps.build-push-latest.outputs.digest }}
73+
subject-digest: ${{ steps.build-push-latest.outputs.digest }}
74+
- name: update release
75+
id: update_release
76+
uses: tubone24/[email protected]
77+
env:
78+
GITHUB_TOKEN: ${{ github.token }}
79+
with:
80+
body: |
81+
Docker Image Tag: ${{ steps.build-push-latest.outputs.digest }}
82+
```
83+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-push-latest.outputs.digest }}
84+
```
85+
Verify the contents of the image:
86+
```
87+
gh attestation verify oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-push-latest.outputs.digest }} --owner ${{ github.actor }}
88+
```

0 commit comments

Comments
 (0)