Skip to content

Commit

Permalink
fix(docker): get API endpoint from env
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed May 29, 2021
1 parent e2ace22 commit f5fd949
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
registry: rg.fr-par.scw.cloud/codebench
username: nologin
password: ${{ secrets.SCW_SECRET_KEY }}
build-args: REACT_APP_API_ENDPOINT=https://api.codebench.dev
- name: Build and push
uses: docker/build-push-action@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM node:16-alpine as build-step

ARG REACT_APP_API_ENDPOINT

ENV REACT_APP_API_ENDPOINT $REACT_APP_API_ENDPOINT

RUN mkdir /app
WORKDIR /app
COPY package.json /app
Expand Down

0 comments on commit f5fd949

Please sign in to comment.