Skip to content

Commit

Permalink
ci: Add .env file and break cache in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Feb 6, 2024
1 parent 5ecd0b9 commit 01608e5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Create .env file
run: |
touch .env
echo "REACT_APP_API_ROOT=$REACT_APP_API_ROOT" >> .env
echo "REACT_APP_EXPERIMENT_SLUG=$REACT_APP_EXPERIMENT_SLUG" >> .env
echo "REACT_APP_AML_HOME=$REACT_APP_AML_HOME" >> .env
echo "REACT_APP_HTML_PAGE_TITLE=$REACT_APP_HTML_PAGE_TITLE" >> .env
echo "REACT_APP_SENTRY_DSN=$REACT_APP_SENTRY_DSN" >> .env
- name: Build Podman images
run: podman-compose -f docker-compose-deploy.yml build
- name: Deploy Podman images
Expand Down
4 changes: 4 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ COPY package.json /client/
COPY yarn.lock /client/
COPY jsconfig.json /client/
COPY . /client/

# Copy .env file to break the cache
COPY .env /client/

RUN yarn
RUN yarn scss
RUN yarn build
Expand Down

0 comments on commit 01608e5

Please sign in to comment.