From f911e66194f8c758252221119f17a1cc334570a2 Mon Sep 17 00:00:00 2001 From: kre8mymedia Date: Fri, 28 Jun 2024 22:54:26 -0500 Subject: [PATCH] Messed up docker image in deploy --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ffe6e8..03e9b48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: - name: Build and push Docker image working-directory: ./backend run: | - COMMIT_SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7) >> $GITHUB_ENV + COMMIT_SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7) DOCKER_IMAGE=docker.io/promptengineers/llm-server:${COMMIT_SHORT_SHA} echo "Building image: $DOCKER_IMAGE" @@ -128,9 +128,13 @@ jobs: - name: Deploy to Cloud Run run: | + COMMIT_SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7) + DOCKER_IMAGE=docker.io/promptengineers/llm-server:${COMMIT_SHORT_SHA} + gcloud config set project ${{ env.GCP_PROJECT }} - echo "Starting Cloud Run Server" + echo "Deploying $DOCKER_IMAGE to Cloud Run Server" + declare -a ENV_VARS=( ## App "APP_ENV=$APP_ENV"