Skip to content

Commit

Permalink
Merge pull request #1100 from Open-Earth-Foundation/fix/on-2999-deplo…
Browse files Browse the repository at this point in the history
…yment-fix

fix: url changes
  • Loading branch information
isaaccodekill authored Feb 4, 2025
2 parents 253a056 + 758412f commit 5bbc503
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/web-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
- name: Setup Environment Variables
run: |
echo "NEXT_PUBLIC_API_URL=https://citycatalyst-test.openearth.dev" >> .env.local
echo "NEXT_PUBLIC_OPENCLIMATE_API_URL=https://openclimate-test.openearth.dev" >> .env.local
echo "NEXT_PUBLIC_API_URL=https://citycatalyst.openearth.dev" >> .env.local
echo "NEXT_PUBLIC_OPENCLIMATE_API_URL=https://openclimate.openearth.dev" >> .env.local
- name: Run NextJS build
run: npm run build
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
IMAGE: ghcr.io/open-earth-foundation/citycatalyst
run: |
docker build \
--build-arg NEXT_PUBLIC_API_URL=https://citycatalyst-test.openearth.dev \
--build-arg NEXT_PUBLIC_OPENCLIMATE_API_URL=https://openclimate-test.openearth.dev \
--build-arg NEXT_PUBLIC_API_URL=https://citycatalyst.openearth.dev \
--build-arg NEXT_PUBLIC_OPENCLIMATE_API_URL=https://openclimate.openearth.dev \
-t $IMAGE:$VERSION app
docker tag $IMAGE:$VERSION $IMAGE:latest
docker push $IMAGE:$VERSION
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/web-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- k8s/test/cc-test-web-deploy.yml
- k8s/test/cc-test/web.yml
- .github/workflows/web-test.yml
branches: ["main"]
branches: [ "main" ]

jobs:
runTests:
Expand Down Expand Up @@ -45,6 +45,11 @@ jobs:
npm run db:migrate
npm run db:seed
- name: Setup Environment Variables
run: |
echo "NEXT_PUBLIC_API_URL=https://citycatalyst-test.openearth.dev" >> .env.local
echo "NEXT_PUBLIC_OPENCLIMATE_API_URL=https://openclimate.openearth.dev" >> .env.local
- name: Run NextJS build
run: npm run build

Expand Down Expand Up @@ -93,7 +98,10 @@ jobs:
VERSION: ${{ github.sha }}
IMAGE: ghcr.io/open-earth-foundation/citycatalyst
run: |
docker build -t $IMAGE:$VERSION app
docker build \
--build-arg NEXT_PUBLIC_API_URL=https://citycatalyst-test.openearth.dev \
--build-arg NEXT_PUBLIC_OPENCLIMATE_API_URL=https://openclimate.openearth.dev \
-t $IMAGE:$VERSION app
docker tag $IMAGE:$VERSION $IMAGE:main
docker push $IMAGE:$VERSION
docker push $IMAGE:main
Expand Down

0 comments on commit 5bbc503

Please sign in to comment.