Skip to content

Commit

Permalink
if
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-z-luo committed Nov 26, 2023
1 parent cd7d458 commit 38df451
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38df451

Please sign in to comment.