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