From 3350ec60371f2bf130cf782694db6ef7ce528ac6 Mon Sep 17 00:00:00 2001 From: Xavier Frankline Date: Fri, 22 Nov 2024 15:05:40 +0300 Subject: [PATCH] chore: add NEXT_PUBLIC_APP_MAP_URL as build arg --- .github/workflows/main.yml | 2 ++ Dockerfile | 2 ++ package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d197fe7f..a38be1c2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,7 @@ env: DOKKU_REMOTE_URL: "ssh://dokku@ui-2.prod.codeforafrica.org/sensors-africa-ui" NEXT_PUBLIC_APP_URL: "https://sensors.africa" NEXT_PUBLIC_APP_API_BASE_URL: "https://api.sensors.africa/v2" + NEXT_PUBLIC_APP_MAP_URL: "https://v2.map.aq.sensors.africa/" IMAGE_NAME: "codeforafrica/sensors-africa-ui" VERSION_FILE_NAME: "package.json" @@ -85,6 +86,7 @@ jobs: build-args: | NEXT_PUBLIC_APP_URL=${{ env.NEXT_PUBLIC_APP_URL }} NEXT_PUBLIC_APP_API_BASE_URL=${{ env.NEXT_PUBLIC_APP_API_BASE_URL }} + NEXT_PUBLIC_APP_MAP_URL=${{ env.NEXT_PUBLIC_APP_MAP_URL }} GOOGLE_ANALYTICS_ID=${{ secrets.SENSORS_AFRICA_GA_ANALYTICS_ID }} API_TOKEN=${{ secrets.SENSORS_AFRICA_API_TOKEN }} cache-from: type=local,src=/tmp/.buildx-cache diff --git a/Dockerfile b/Dockerfile index 6bf41684..17b07a67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,12 +38,14 @@ COPY . . ARG NEXT_TELEMETRY_DISABLED\ NEXT_PUBLIC_APP_URL \ NEXT_PUBLIC_APP_API_BASE_URL \ + NEXT_PUBLIC_APP_MAP_URL \ GOOGLE_ANALYTICS_ID \ API_TOKEN ENV NEXT_TELEMETRY_DISABLED=${NEXT_TELEMETRY_DISABLED}\ NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL} \ NEXT_PUBLIC_APP_API_BASE_URL=${NEXT_PUBLIC_APP_API_BASE_URL} \ + NEXT_PUBLIC_APP_MAP_URL=${NEXT_PUBLIC_APP_MAP_URL} \ GOOGLE_ANALYTICS_ID=${GOOGLE_ANALYTICS_ID} \ API_TOKEN=${API_TOKEN} diff --git a/package.json b/package.json index b720781a..85449438 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sensors.africa", "description": "sensors.AFRICA", - "version": "0.4.30", + "version": "0.4.31", "private": true, "main": "index.js", "homepage": "https://sensors.africa/",