Skip to content

Commit

Permalink
clean up code and change download artifact path and image_check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
marycrawford committed Nov 15, 2024
1 parent 0f42469 commit f3a729c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
# Debugging step to check the value of docker_inspect
- name: Debug image inspect result
run: echo "Docker inspect result: ${{ steps.image_check.outputs.docker_inspect }}"

- name: Build and Push backend
if: ${{ steps.image_check.outputs.docker_inspect == 1 }}
if: ${{ steps.image_check.outputs.docker_inspect == 0 }} # TODO: May need to change this back to 1, but test out 0
uses: ./.github/actions/build-publish-api
with:
docker-registry: ghcr.io
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: ocr-docker-image-artifact # The name of the artifact to download
path: ./downloaded-artifact # Path where the artifact will be saved
path: ./OCR # Path where the artifact will be saved

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

deploy-frontend:
name: Deploy Frontend
Expand Down

0 comments on commit f3a729c

Please sign in to comment.