From 38df4514d1950006ce45dd1f1c31747ba845742f Mon Sep 17 00:00:00 2001 From: Oliver Luo Date: Sun, 26 Nov 2023 10:34:53 -0800 Subject: [PATCH] if --- .github/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79a20ab..2f8d958 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -194,8 +194,14 @@ jobs: image_scan_result_cos_api_token: ${{ secrets.CONTAINER_IMAGE_SCAN_RESULT_COS_API_KEY }} fail_if_overdue: ${{ inputs.scan_fail_if_overdue }} - - name: Demo - Output image to push - run: echo "{${{ inputs.image }}:${{ github.ref_name }}}" + - name: Demo - Check Image and give status + run: | + echo "Checking if image exist in ICR" + IMAGE="${{ inputs.image }}:${{ github.ref_name }}" + if docker manifest inspect "$IMAGE" + then echo "Image found: ${IMAGE}" + else echo "Image not found: $IMAGE" + fi - name: Build and push id: build-push