Skip to content

Commit a4f9687

Browse files
committed
test new action
1 parent 78a07c3 commit a4f9687

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish_container.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ jobs:
5555
- name: Update Release Body
5656
if: env.RELEASE_ID != ''
5757
run: |
58+
BODY="Docker Image Tag: ${{ steps.meta.outputs.tags }}\\n\\n```\ndocker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}\n```\n\nVerify the contents of the image:\n```\ngh attestation verify oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} --owner ${{ github.actor }}\n```"
5859
curl -X PATCH \
5960
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
6061
-H "Accept: application/vnd.github+json" \
61-
-d "{\"body\": \"Docker Image Tag: ${{ steps.meta.outputs.tags }}\n```\ndocker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}\n```\nVerify the contents of the image:\n```\ngh attestation verify oci://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} --owner ${{ github.actor }}\n```\"}" \
62+
-d "{\"body\": \"$BODY\"}" \
6263
https://api.github.com/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}
6364
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
# 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.
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 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.
6666
# 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.
6767
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
6868
- name: Build and push Docker image

0 commit comments

Comments
 (0)