From d1a35f9bc06208fb08bb95cbfe3f90a125a66bc7 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Fri, 7 Jun 2024 17:22:09 +0000 Subject: [PATCH] --format '{{.Digest}}' --- .github/workflows/open-pr.yml | 2 +- .github/workflows/push-tag.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/open-pr.yml b/.github/workflows/open-pr.yml index b4ffe71..9e17bab 100644 --- a/.github/workflows/open-pr.yml +++ b/.github/workflows/open-pr.yml @@ -140,7 +140,7 @@ jobs: - name: get container image digest run: | docker pull ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }} - echo "IMAGE_DIGEST=$(docker inspect ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }} | jq -r .[].Digest)" >> ${{ github.env }} + echo "IMAGE_DIGEST=$(docker inspect --format '{{.Digest}}' ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }})" >> ${{ github.env }} - name: humctl score deploy run: | humctl score deploy \ diff --git a/.github/workflows/push-tag.yml b/.github/workflows/push-tag.yml index 6f125b8..1e2d4af 100644 --- a/.github/workflows/push-tag.yml +++ b/.github/workflows/push-tag.yml @@ -92,7 +92,7 @@ jobs: - name: get container image digest run: | docker pull ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }} - echo "IMAGE_DIGEST=$(docker inspect ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }} | jq -r .[].Digest)" >> ${{ github.env }} + echo "IMAGE_DIGEST=$(docker inspect --format '{{.Digest}}' ${{ env.IMAGE_NAME }}:${{ env.ENVIRONMENT_ID }})" >> ${{ github.env }} - name: notify humanitec run: |- humctl create artefact-version \