Skip to content

Commit

Permalink
Yet another attempt at fixing frontend-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru committed Apr 22, 2022
1 parent 881cc02 commit 29f11fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/frontend-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
working-directory: frontend
run: |
docker build -t turingassuranceplatform/eap_frontend:main --build-arg REACT_APP_BASE_URL="https://turing-assuranceplatform-backend.azurewebsites.net/api" -f Dockerfile .
docker build -t turingassuranceplatform/eap_frontend:main -f Dockerfile .
docker push turingassuranceplatform/eap_frontend:main
- name: 'Build dev'
if: ${{ github.ref == 'refs/heads/dev' }}
working-directory: frontend
run: |
docker build -t turingassuranceplatform/eap_frontend:dev --build-arg REACT_APP_BASE_URL="https://turing-assuranceplatform-backend.azurewebsites.net/api" -f Dockerfile .
docker build -t turingassuranceplatform/eap_frontend:dev -f Dockerfile .
docker push turingassuranceplatform/eap_frontend:dev
1 change: 1 addition & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:16.14.2-slim
ENV REACT_APP_BASE_URL="https://turing-assuranceplatform-backend.azurewebsites.net/api"
COPY . /frontend
WORKDIR /frontend
RUN npm install
Expand Down

0 comments on commit 29f11fe

Please sign in to comment.