Skip to content

Commit

Permalink
Remove docker registered image check (#327)
Browse files Browse the repository at this point in the history
Co-authored-by: Administrator <[email protected]>
  • Loading branch information
derekadombek and Administrator authored Oct 16, 2024
1 parent 9819d20 commit 981e0a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-deploy-ocr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Lowercase the repo name
run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Check if image exists
id: image_check
run: docker manifest inspect ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:${{ env.VERSION }} > /dev/null ; echo $?
# - name: Check if image exists
# id: image_check
# run: docker manifest inspect ${{ env.REGISTRY }}/${{ env.REPO }}-ocr-api:${{ env.VERSION }} > /dev/null ; echo $?
- name: Build and push Docker image
id: push
if: steps.image_check.outcome == 1
uses: docker/build-push-action@v6
with:
context: ./OCR/
Expand Down

0 comments on commit 981e0a1

Please sign in to comment.