From 4726f5ba3c9f09d86dc1b2436b400fc0f38b60d6 Mon Sep 17 00:00:00 2001 From: sjonpaulbrown Date: Mon, 3 Jun 2024 15:55:37 -0600 Subject: [PATCH] Fix workflows --- .github/workflows/deploy-to-cloudrun-production.yml | 2 +- .github/workflows/deploy-to-cloudrun-staging.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-to-cloudrun-production.yml b/.github/workflows/deploy-to-cloudrun-production.yml index 649d0df3..1ef6e42f 100644 --- a/.github/workflows/deploy-to-cloudrun-production.yml +++ b/.github/workflows/deploy-to-cloudrun-production.yml @@ -53,7 +53,7 @@ jobs: - name: Build CAST Backend run: |- gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev - docker build -t ${{ env.BACKEND_DOCKER_IMAGE_URL }} --file backend/Dockerfile . + docker build -t ${{ env.BACKEND_DOCKER_IMAGE_URL }} --file backend/Dockerfile ./backend docker push ${{ env.BACKEND_DOCKER_IMAGE_URL }} - name: Build CAST Frontend diff --git a/.github/workflows/deploy-to-cloudrun-staging.yml b/.github/workflows/deploy-to-cloudrun-staging.yml index c4014cae..b6338026 100644 --- a/.github/workflows/deploy-to-cloudrun-staging.yml +++ b/.github/workflows/deploy-to-cloudrun-staging.yml @@ -53,15 +53,15 @@ jobs: - name: Docker Auth run: |- gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev - docker build -t ${{ env.BACKEND_DOCKER_IMAGE_URL }} --file backend/Dockerfile . + docker build -t ${{ env.BACKEND_DOCKER_IMAGE_URL }} --file backend/Dockerfile ./backend docker push ${{ env.BACKEND_DOCKER_IMAGE_URL }} - - name: build and push frontend - stage - + - name: Build & Push Frontend env: BACKEND: ${{ env.backend_api }} run: | gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev - cd frontend && sed -i -e 's/REPLACE_HOTJAR_SITE_ID/${{ env.hotjar_site_id }}/g' Dockerfile.stage && sed -i -e 's|REPLACE_SENTRY_URL|${{ env.sentry_url }}|g' Dockerfile.stage && docker build -f Dockerfile.stage . -t ${{ env.FRONTEND_DOCKER_IMAGE_URL }} + cd frontend && docker build -f Dockerfile.stage . -t ${{ env.FRONTEND_DOCKER_IMAGE_URL }} deploy-staging-backend: needs: [build]