Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru committed Apr 25, 2022
2 parents 0b7f45c + 4c5b0e0 commit 30b01d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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 -f Dockerfile .
docker build -t turingassuranceplatform/eap_frontend:main --build-arg BASE_URL="https://turing-assuranceplatform-backend.azurewebsites.net/api" -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 -f Dockerfile .
docker build -t turingassuranceplatform/eap_frontend:dev --build-arg BASE_URL="https://turing-assuranceplatform-backend-dev.azurewebsites.net/api" -f Dockerfile .
docker push turingassuranceplatform/eap_frontend:dev
3 changes: 2 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM node:16.14.2-slim
ENV REACT_APP_BASE_URL="https://turing-assuranceplatform-backend.azurewebsites.net/api"
ARG BASE_URL
ENV REACT_APP_BASE_URL=$BASE_URL
COPY . /frontend
WORKDIR /frontend
RUN npm install
Expand Down

0 comments on commit 30b01d8

Please sign in to comment.