Skip to content

Commit

Permalink
Yeah also the ENVs aren't actually available in GitHub workflow build
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-buffard committed Aug 17, 2024
1 parent 3f62194 commit 931a945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:

- name: Build and push web
uses: docker/build-push-action@v5.3.0
env:
NEXT_PUBLIC_ADMIN_BASE_URI: ${{secrets.NEXT_PUBLIC_ADMIN_BASE_URI}}
with:
context: ./web
file: ./web/Dockerfile
Expand Down
1 change: 1 addition & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN npm install
COPY . .

ENV NEXT_PUBLIC_API=http://beta.g-yachts.com
ENV NEXT_PUBLIC_ADMIN_BASE_URI=${NEXT_PUBLIC_ADMIN_BASE_URI}

RUN npm run build

Expand Down

0 comments on commit 931a945

Please sign in to comment.