Skip to content

Commit

Permalink
feat: add GHA summary for image sync job
Browse files Browse the repository at this point in the history
  • Loading branch information
rquitales committed Feb 15, 2025
1 parent 9a9e1c7 commit 7707e9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/sync-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ jobs:
- name: Copy ${{ env.OPERATOR_VERSION }} image to GitHub Container Registry
run: |
skopeo copy --all docker://docker.io/${{ env.DOCKER_USERNAME }}/${{ env.OPERATOR_IMAGE_NAME }}:${{ env.OPERATOR_VERSION }} docker://ghcr.io/${{ env.DOCKER_USERNAME }}/${{ env.OPERATOR_IMAGE_NAME }}:${{ env.OPERATOR_VERSION }}
- name: Output build summary
run: |
SUMMARY=$'# Image Syncing Summary\nSource Image: pulumi/${{ env.OPERATOR_IMAGE_NAME }}:${{ env.OPERATOR_VERSION }}\n\nDestination Images:\n- public.ecr.aws/${{ env.DOCKER_USERNAME }}/${{ env.OPERATOR_IMAGE_NAME }}:${{ env.OPERATOR_VERSION }}\n- ghcr.io/${{ env.DOCKER_USERNAME }}/${{ env.OPERATOR_IMAGE_NAME }}:${{ env.OPERATOR_VERSION }}'
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY

0 comments on commit 7707e9c

Please sign in to comment.