Skip to content

Commit

Permalink
chore: add NEXT_PUBLIC_APP_MAP_URL as build arg
Browse files Browse the repository at this point in the history
  • Loading branch information
thepsalmist committed Nov 22, 2024
1 parent 5719dca commit 3350ec6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
DOKKU_REMOTE_URL: "ssh://[email protected]/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"

Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down

0 comments on commit 3350ec6

Please sign in to comment.