Skip to content

Commit

Permalink
Messed up docker image in deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneggz committed Jun 29, 2024
1 parent c40327f commit f911e66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f911e66

Please sign in to comment.