Skip to content

Commit

Permalink
Remove build time environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Sep 28, 2023
1 parent 6a60b72 commit 07f298f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,5 @@ jobs:
with:
context: .
push: true
build-args: |
VITE_MAPBOX_API_TOKEN=${{ secrets.MAPBOX_API_TOKEN }}
VITE_MACROSTRAT_TILESERVER_V1=https://tiles.macrostrat.org
VITE_MACROSTRAT_TILESERVER_DOMAIN=https://tileserver.macrostrat-dev.chtc.io
VITE_MACROSTRAT_API_DOMAIN=https://macrostrat.macrostrat-dev.chtc.io/
VITE_CORELLE_API_DOMAIN=https://rotate.macrostrat.org
PUBLIC_URL=/
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
7 changes: 0 additions & 7 deletions .github/workflows/build-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
build-args: |
VITE_MAPBOX_API_TOKEN=${{ secrets.MAPBOX_API_TOKEN }}
VITE_MACROSTRAT_TILESERVER_V1=https://tiles.macrostrat.org
VITE_MACROSTRAT_TILESERVER_DOMAIN=https://tileserver.macrostrat-dev.chtc.io
VITE_MACROSTRAT_API_DOMAIN=
VITE_CORELLE_API_DOMAIN=https://rotate.macrostrat.org
PUBLIC_URL=/map/
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
18 changes: 0 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
FROM node:20 AS build

ARG VITE_MAPBOX_API_TOKEN
ENV VITE_MAPBOX_API_TOKEN=$VITE_MAPBOX_API_TOKEN

ARG VITE_MACROSTRAT_TILESERVER_V2
ENV VITE_MACROSTRAT_TILESERVER_V2=$VITE_MACROSTRAT_TILESERVER_V2

ARG VITE_MACROSTRAT_TILESERVER_V1
ENV VITE_MACROSTRAT_TILESERVER_V1=$VITE_MACROSTRAT_TILESERVER_V1

ARG VITE_MACROSTRAT_TILESERVER_DOMAIN
ENV VITE_MACROSTRAT_TILESERVER_DOMAIN=$VITE_MACROSTRAT_TILESERVER_DOMAIN

ARG VITE_MACROSTRAT_API_DOMAIN
ENV VITE_MACROSTRAT_API_DOMAIN=$VITE_MACROSTRAT_API_DOMAIN

ARG VITE_CORELLE_API_DOMAIN
ENV VITE_CORELLE_API_DOMAIN=$VITE_CORELLE_API_DOMAIN

ENV NODE_ENV=production

WORKDIR /usr/src/app
Expand Down

0 comments on commit 07f298f

Please sign in to comment.