Skip to content

Commit f3a729c

Browse files
author
marycrawford
committed
clean up code and change download artifact path and image_check logic
1 parent 0f42469 commit f3a729c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/deploy-dev.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
# Debugging step to check the value of docker_inspect
5151
- name: Debug image inspect result
5252
run: echo "Docker inspect result: ${{ steps.image_check.outputs.docker_inspect }}"
53-
53+
5454
- name: Build and Push backend
55-
if: ${{ steps.image_check.outputs.docker_inspect == 1 }}
55+
if: ${{ steps.image_check.outputs.docker_inspect == 0 }} # TODO: May need to change this back to 1, but test out 0
5656
uses: ./.github/actions/build-publish-api
5757
with:
5858
docker-registry: ghcr.io
@@ -126,7 +126,7 @@ jobs:
126126
uses: actions/download-artifact@v3
127127
with:
128128
name: ocr-docker-image-artifact # The name of the artifact to download
129-
path: ./downloaded-artifact # Path where the artifact will be saved
129+
path: ./OCR # Path where the artifact will be saved
130130

131131
# Ensure that the downloaded artifact is available
132132
- name: List files in the downloaded artifact directory (for debugging)
@@ -139,11 +139,6 @@ jobs:
139139
docker-tag: ${{ inputs.ocr-version }}
140140
docker-registry: ghcr.io
141141
api-name: ocr-api
142-
# - name: Download Docker Artifact
143-
# uses: actions/download-artifact@v3
144-
# with:
145-
# name: ocr-docker-image-artifact # The name of the artifact to download
146-
# path: ./OCR/dockerbuild_file.dockerbuild # Path where the artifact is saved
147142

148143
deploy-frontend:
149144
name: Deploy Frontend

0 commit comments

Comments
 (0)