Skip to content

Commit

Permalink
Back to oras manifest fetch for digest
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Nov 2, 2024
1 parent 237ecd5 commit ed51608
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ jobs:
gcloud auth configure-docker \
${{ secrets.REGISTRY_LOCATION }}-docker.pkg.dev \
--quiet
- uses: oras-project/setup-oras@v1
- name: get container image digest
run: |
docker pull ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
echo "IMAGE_DIGEST=$(docker inspect ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} --format='{{.Digest}}')" >> ${{ github.env }}
echo "IMAGE_DIGEST=$(oras manifest fetch ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }} \
--descriptor \
| jq -r .digest)" >> ${{ github.env }}
- name: humctl score deploy
run: |
humctl score deploy \
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ jobs:
gcloud auth configure-docker \
${{ secrets.REGISTRY_LOCATION }}-docker.pkg.dev \
--quiet
- uses: oras-project/setup-oras@v1
- name: get container image digest
run: |
docker pull ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
echo "IMAGE_DIGEST=$(docker inspect ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} --format='{{.Digest}}')" >> ${{ github.env }}
echo "IMAGE_DIGEST=$(oras manifest fetch ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }} \
--descriptor \
| jq -r .digest)" >> ${{ github.env }}
- name: notify humanitec
run: |-
humctl create artefact-version \
Expand Down

0 comments on commit ed51608

Please sign in to comment.