Skip to content

Commit f5fd949

Browse files
committed
fix(docker): get API endpoint from env
1 parent e2ace22 commit f5fd949

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
registry: rg.fr-par.scw.cloud/codebench
2424
username: nologin
2525
password: ${{ secrets.SCW_SECRET_KEY }}
26+
build-args: REACT_APP_API_ENDPOINT=https://api.codebench.dev
2627
- name: Build and push
2728
uses: docker/build-push-action@v2
2829
with:

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM node:16-alpine as build-step
22

3+
ARG REACT_APP_API_ENDPOINT
4+
5+
ENV REACT_APP_API_ENDPOINT $REACT_APP_API_ENDPOINT
6+
37
RUN mkdir /app
48
WORKDIR /app
59
COPY package.json /app

0 commit comments

Comments
 (0)