From 2a269310801ca4f982261191d8ba850b8e69cbc1 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 14:49:07 -0800 Subject: [PATCH 01/18] updates to deploy-dev.yml to save all workflow artifacts including dockerbuild --- .github/workflows/deploy-dev.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index f582f04d..8791f1ea 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -102,6 +102,8 @@ jobs: docker-tag: ${{ inputs.ocr-version }} docker-registry: ghcr.io api-name: ocr-api + - name: Download all workflow run artifacts + uses: actions/download-artifact@v4 deploy-frontend: name: Deploy Frontend From 4a2a0484964147ea40f9f295ebf6c6126a3062ab Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 15:25:00 -0800 Subject: [PATCH 02/18] container registry log in for the depoloy-dev.yml --- .github/workflows/deploy-dev.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 8791f1ea..28267df4 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -27,7 +27,14 @@ jobs: outputs: docker_inspect: ${{ steps.image_check.outputs.docker_inspect }} steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Lowercase the repo name run: echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} - name: Check if image exists From 5f283fa8efd6ecc09ade35b84e23863b986361d3 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 15:33:50 -0800 Subject: [PATCH 03/18] update to deploy-dev.yml to include docker-build with statement and move download worflow use --- .github/workflows/deploy-dev.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 28267df4..d53f5c47 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -104,13 +104,14 @@ jobs: subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: Deploy OCR-API uses: ./.github/actions/deploy-api + - name: Download all workflow run artifacts + uses: actions/download-artifact@v4 with: deploy-env: ${{ inputs.deploy-env }} docker-tag: ${{ inputs.ocr-version }} docker-registry: ghcr.io api-name: ocr-api - - name: Download all workflow run artifacts - uses: actions/download-artifact@v4 + docker-build: CDCgov~ReportVision~VPLMV6.dockerbuild deploy-frontend: name: Deploy Frontend From 94610b7ab5bbb52c2a977bcb86571ae5f2437cc5 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 15:35:26 -0800 Subject: [PATCH 04/18] update with variable to reportvision-dockerbuild --- .github/workflows/deploy-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index d53f5c47..9af8b6c9 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -111,7 +111,7 @@ jobs: docker-tag: ${{ inputs.ocr-version }} docker-registry: ghcr.io api-name: ocr-api - docker-build: CDCgov~ReportVision~VPLMV6.dockerbuild + reportvision-dockerbuild: CDCgov~ReportVision~VPLMV6.dockerbuild deploy-frontend: name: Deploy Frontend From 7847ed7a3551aff622190330c7e438896c0467f9 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 15:37:07 -0800 Subject: [PATCH 05/18] comment out download all workflow section --- .github/workflows/deploy-dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 9af8b6c9..fadcbf87 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -104,8 +104,8 @@ jobs: subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: Deploy OCR-API uses: ./.github/actions/deploy-api - - name: Download all workflow run artifacts - uses: actions/download-artifact@v4 + # - name: Download all workflow run artifacts + # uses: actions/download-artifact@v4 with: deploy-env: ${{ inputs.deploy-env }} docker-tag: ${{ inputs.ocr-version }} From e27c39ae9d47563377abd50c74905ac6ac13b3dd Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 16:04:09 -0800 Subject: [PATCH 06/18] add upload and download of artifacts to deploy-dev.yml file --- .github/workflows/deploy-dev.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index fadcbf87..ceec969e 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -29,23 +29,27 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Log in to the Container registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} 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: | echo "docker_inspect=$( docker manifest inspect ghcr.io/${{ env.REPO }}-ocr-api:${{ inputs.ocr-version }} > /dev/null ; echo $? )" >> $GITHUB_OUTPUT + - name: Build and Push backend if: ${{ steps.image_check.outputs.docker_inspect == 1 }} - uses: ./.github/actions/build-publish-api + uses: docker/build-push-action@v4 with: docker-registry: ghcr.io docker-pw: ${{ secrets.GITHUB_TOKEN }} @@ -55,11 +59,19 @@ jobs: docker-context-path: ./OCR/ api-name: ocr-api + - name: Upload Docker Build Artifact + if: ${{ steps.image_check.outputs.docker_inspect == 1 }} + uses: actions/upload-artifact@v3 + with: + name: ocr-api-image + path: ./OCR # TODO: make sure this is the correct path + build-frontend: name: Build Frontend runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: ./.github/actions/build-frontend name: Build frontend with: @@ -102,16 +114,20 @@ jobs: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: Download Docker Artifact + uses: actions/download-artifact@v3 + with: + name: ocr-api-image # artifact uploaded in the build-publish-ocr job + - name: Deploy OCR-API uses: ./.github/actions/deploy-api - # - name: Download all workflow run artifacts - # uses: actions/download-artifact@v4 with: deploy-env: ${{ inputs.deploy-env }} docker-tag: ${{ inputs.ocr-version }} docker-registry: ghcr.io api-name: ocr-api - reportvision-dockerbuild: CDCgov~ReportVision~VPLMV6.dockerbuild + reportvision-dockerbuild: ocr-api-image # artifact downloaded deploy-frontend: name: Deploy Frontend @@ -130,4 +146,4 @@ jobs: uses: ./.github/actions/deploy-frontend with: frontend-tarball: frontend.tgz - deploy-env: ${{ inputs.deploy-env }} \ No newline at end of file + deploy-env: ${{ inputs.deploy-env }} From b02824de108254d538500250a55bfd5167e6f443 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 16:09:40 -0800 Subject: [PATCH 07/18] updates to download artifacts to resove build error --- .github/workflows/deploy-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index ceec969e..d409d8ef 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -49,7 +49,7 @@ jobs: - name: Build and Push backend if: ${{ steps.image_check.outputs.docker_inspect == 1 }} - uses: docker/build-push-action@v4 + uses: ./.github/actions/build-publish-api with: docker-registry: ghcr.io docker-pw: ${{ secrets.GITHUB_TOKEN }} From deeedc665141c1c0ab1578727859ded2038b3fcb Mon Sep 17 00:00:00 2001 From: marycrawford Date: Thu, 14 Nov 2024 23:45:59 -0800 Subject: [PATCH 08/18] update the deploy-dev.yml upload docker build artifact section --- .github/workflows/deploy-dev.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index d409d8ef..c6f341c4 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -63,8 +63,8 @@ jobs: if: ${{ steps.image_check.outputs.docker_inspect == 1 }} uses: actions/upload-artifact@v3 with: - name: ocr-api-image - path: ./OCR # TODO: make sure this is the correct path + name: ocr-docker-image-artifact + path: ./OCR/dockerbuild_file.dockerbuild # Path to the artifact build-frontend: name: Build Frontend @@ -118,8 +118,8 @@ jobs: - name: Download Docker Artifact uses: actions/download-artifact@v3 with: - name: ocr-api-image # artifact uploaded in the build-publish-ocr job - + name: ocr-docker-image-artifact # The name of the artifact to download + path: ./downloaded-artifact # Path where the artifact will be saved - name: Deploy OCR-API uses: ./.github/actions/deploy-api with: @@ -127,7 +127,11 @@ jobs: docker-tag: ${{ inputs.ocr-version }} docker-registry: ghcr.io api-name: ocr-api - reportvision-dockerbuild: ocr-api-image # artifact downloaded + - name: Download Docker Artifact (Optional) + 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 deploy-frontend: name: Deploy Frontend From 0b99199fe7b21a82cf7d0987587b0295cb70341c Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 00:14:27 -0800 Subject: [PATCH 09/18] delete duplicate Download Docker Artifact name --- .github/workflows/build-deploy-ocr.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-deploy-ocr.yml b/.github/workflows/build-deploy-ocr.yml index 79bf2f4f..f21a5e42 100644 --- a/.github/workflows/build-deploy-ocr.yml +++ b/.github/workflows/build-deploy-ocr.yml @@ -54,6 +54,12 @@ jobs: dockerfile-path: ./OCR/Dockerfile docker-context-path: ./OCR/ api-name: ocr-api + - name: Upload Docker Build Artifact (Optional) + if: ${{ steps.image_check.outputs.docker_inspect == 1 }} + uses: actions/upload-artifact@v3 + with: + name: ocr-docker-image-artifact + path: ./OCR/dockerbuild_file.dockerbuild # Path to the artifact deploy-ocr: name: Deploy OCR @@ -74,3 +80,8 @@ jobs: docker-tag: ${{ inputs.ocr-version }} docker-registry: ghcr.io api-name: ocr-api + - name: Download Docker Artifact (Optional) + 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 From a1efad884555b6bb115b9847aa4455b3695b734e Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 00:32:47 -0800 Subject: [PATCH 10/18] fix deploy OCR build failure --- .github/workflows/deploy-dev.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index c6f341c4..ee9daa58 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -115,11 +115,6 @@ jobs: tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - - name: Download Docker Artifact - 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 - name: Deploy OCR-API uses: ./.github/actions/deploy-api with: @@ -127,11 +122,11 @@ jobs: docker-tag: ${{ inputs.ocr-version }} docker-registry: ghcr.io api-name: ocr-api - - name: Download Docker Artifact (Optional) + - name: Download Docker Artifact 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/dockerbuild_file.dockerbuild # Path where the artifact is saved deploy-frontend: name: Deploy Frontend From 58d7cce8117e43271f1f8f41502d355ca17428b5 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 00:44:40 -0800 Subject: [PATCH 11/18] revert prior changes --- .github/workflows/deploy-dev.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index ee9daa58..36291742 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -114,7 +114,11 @@ jobs: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - + - name: Download Docker Artifact (Optional) + 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 - name: Deploy OCR-API uses: ./.github/actions/deploy-api with: @@ -127,7 +131,7 @@ jobs: 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 runs-on: ubuntu-latest From 5c067c14943433c73b87fffd7b2c99d0d60e54e8 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 10:36:04 -0800 Subject: [PATCH 12/18] comment out redudant downlad docker artifact code --- .github/workflows/deploy-dev.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 36291742..3b5b4a2b 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -126,11 +126,11 @@ 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 + # - 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 From ff6f879daa6ae6e3008678b1c80f115cfac82e14 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 10:41:00 -0800 Subject: [PATCH 13/18] add a check to make sure docker file is uploaded to path --- .github/workflows/deploy-dev.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 3b5b4a2b..1e144963 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -66,6 +66,10 @@ jobs: name: ocr-docker-image-artifact path: ./OCR/dockerbuild_file.dockerbuild # Path to the artifact + # Check to see if the file is uploaded in this directory + - name: List files in OCR directory + run: ls -l ./OCR + build-frontend: name: Build Frontend runs-on: ubuntu-latest From c54bd3511bff406635fb750eaf3c345eb37bb028 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 10:45:26 -0800 Subject: [PATCH 14/18] update upload docker file path --- .github/workflows/deploy-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 1e144963..c9641270 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -64,7 +64,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: ocr-docker-image-artifact - path: ./OCR/dockerbuild_file.dockerbuild # Path to the artifact + path: ./OCR/dev-dockerfile # Path to the artifact # Check to see if the file is uploaded in this directory - name: List files in OCR directory From 47d93448ae09853aef67e9a948f01e5d0c2d889f Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 10:54:02 -0800 Subject: [PATCH 15/18] debug downloaded artifact error --- .github/workflows/deploy-dev.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index c9641270..3eac93ae 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -123,6 +123,11 @@ jobs: with: name: ocr-docker-image-artifact # The name of the artifact to download path: ./downloaded-artifact # Path where the artifact will be saved + + # Ensure that the downloaded artifact is available + - name: List files in the downloaded artifact directory (for debugging) + run: ls -l ./downloaded-artifact + - name: Deploy OCR-API uses: ./.github/actions/deploy-api with: From 0f424693b9629a5dda3409d1ee68a6a91a2e2473 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 10:57:55 -0800 Subject: [PATCH 16/18] debug docker_inspect command --- .github/workflows/deploy-dev.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 3eac93ae..c3fdd6d2 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -47,6 +47,10 @@ jobs: docker manifest inspect ghcr.io/${{ env.REPO }}-ocr-api:${{ inputs.ocr-version }} > /dev/null ; echo $? )" >> $GITHUB_OUTPUT + # 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 }} uses: ./.github/actions/build-publish-api @@ -125,8 +129,8 @@ jobs: path: ./downloaded-artifact # Path where the artifact will be saved # Ensure that the downloaded artifact is available - - name: List files in the downloaded artifact directory (for debugging) - run: ls -l ./downloaded-artifact + - name: List files in the downloaded artifact directory (for debugging) + run: ls -l ./downloaded-artifact - name: Deploy OCR-API uses: ./.github/actions/deploy-api From f3a729c227ceed0ebdefcba0be5e8862c8d17510 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Fri, 15 Nov 2024 11:11:18 -0800 Subject: [PATCH 17/18] 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 From f99581e96d7ddc4d17b509b10a8b02465045fa64 Mon Sep 17 00:00:00 2001 From: marycrawford Date: Mon, 18 Nov 2024 08:32:07 -0800 Subject: [PATCH 18/18] add notes to refactor --- .github/workflows/deploy-dev.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 903902c4..5483b379 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -46,11 +46,18 @@ jobs: echo "docker_inspect=$( docker manifest inspect ghcr.io/${{ env.REPO }}-ocr-api:${{ inputs.ocr-version }} > /dev/null ; echo $? )" >> $GITHUB_OUTPUT + + + # Pull the image from GHCR + # - name: Pull OCR Docker image from GHCR + # run: | + # docker pull ghcr.io/${{ github.repository }}-ocr-api:${{ inputs.ocr-version }} # 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 }}" +# TODO: Check if image exists, if not create and build & if it does then do a docker pull - name: Build and Push backend 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