Skip to content

Commit

Permalink
merged in main
Browse files Browse the repository at this point in the history
  • Loading branch information
lstillwe committed May 8, 2024
2 parents 2fc6f8d + 05a6356 commit 7593bc3
Show file tree
Hide file tree
Showing 31 changed files with 1,156 additions and 193 deletions.
1 change: 0 additions & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ name: ES Lint the repo
on:
workflow_dispatch:
push:
pull_request:

jobs:
eslint:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/image-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
APP_VERSION=${{ steps.get_version.outputs.VERSION }}
APP_GS_DATA_URL=${{ secrets.GS_DATA_URL }}
APP_UI_DATA_URL=${{ secrets.UI_DATA_URL }}
APP_UI_DATA_TOKEN=${{ secrets.TOKEN }}
APP_UI_DATA_TOKEN=${{ secrets.UI_DATA_TOKEN }}
APP_UI_MAPBOX_TOKEN=${{ secrets.UI_MAPBOX_TOKEN }}
tags: |
${{ env.REGISTRY }}:latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ dist
node_modules

.env*
.DS_Store
src/.DS_Store
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ ARG APP_VERSION=$(APP_VERSION)
ARG APP_GS_DATA_URL=$(APP_GS_DATA_URL)
ARG APP_UI_DATA_URL=$(APP_UI_DATA_URL)
ARG APP_UI_DATA_TOKEN=$(APP_UI_DATA_TOKEN)
ARG APP_UI_MAPBOX_TOKEN=$(APP_UI_MAPBOX_TOKEN)

# now add the values into ENV params
ENV REACT_APP_VERSION=$APP_VERSION
ENV REACT_APP_GS_DATA_URL=$APP_GS_DATA_URL
ENV REACT_APP_UI_DATA_URL=$APP_UI_DATA_URL
ENV REACT_APP_UI_DATA_TOKEN=$APP_UI_DATA_TOKEN
ENV REACT_APP_MAPBOX_TOKEN=$APP_UI_MAPBOX_TOKEN

# create the env file
RUN printf "NODE_ENV=production\nREACT_APP_VERSION=$APP_VERSION\nREACT_APP_GS_DATA_URL=$APP_GS_DATA_URL\n" > .env
RUN printf "REACT_APP_UI_DATA_URL=$APP_UI_DATA_URL\nREACT_APP_UI_DATA_TOKEN=$APP_UI_DATA_TOKEN\n" >> .env
RUN printf "REACT_APP_MAPBOX_TOKEN=$REACT_APP_MAPBOX_TOKEN\n" >> .env

# Copy in source files
COPY . /src
Expand Down
Loading

0 comments on commit 7593bc3

Please sign in to comment.