File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,18 @@ jobs:
46
46
echo "docker_inspect=$(
47
47
docker manifest inspect ghcr.io/${{ env.REPO }}-ocr-api:${{ inputs.ocr-version }} > /dev/null ; echo $?
48
48
)" >> $GITHUB_OUTPUT
49
+
50
+
51
+ # Pull the image from GHCR
52
+ # - name: Pull OCR Docker image from GHCR
53
+ # run: |
54
+ # docker pull ghcr.io/${{ github.repository }}-ocr-api:${{ inputs.ocr-version }}
49
55
50
56
# Debugging step to check the value of docker_inspect
51
57
- name : Debug image inspect result
52
58
run : echo "Docker inspect result: ${{ steps.image_check.outputs.docker_inspect }}"
53
59
60
+ # TODO: Check if image exists, if not create and build & if it does then do a docker pull
54
61
- name : Build and Push backend
55
62
if : ${{ steps.image_check.outputs.docker_inspect == 0 }} # TODO: May need to change this back to 1, but test out 0
56
63
uses : ./.github/actions/build-publish-api
You can’t perform that action at this time.
0 commit comments