From f3a729c227ceed0ebdefcba0be5e8862c8d17510 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 11:11:18 -0800 Subject: [PATCH] clean up code and change download artifact path and image_check logic --- .github/workflows/deploy-dev.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index c3fdd6d2..903902c4 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -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 @@ -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) @@ -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