Skip to content

Commit

Permalink
build separate images
Browse files Browse the repository at this point in the history
  • Loading branch information
elhmn committed Aug 10, 2024
1 parent 39f6151 commit b372f5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-frontend
IMAGE_NAME: ${{ github.repository }}-frontend-stage

jobs:
build-and-push-image:
Expand Down Expand Up @@ -43,6 +43,9 @@ jobs:
uses: docker/build-push-action@v2
with:
context: ./frontend
build-args: |
baseURL=https://osscameroon-website-api.stage.osscameroon.com
env=development
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
3 changes: 2 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM node:12.22-buster-slim
ARG baseURL="https://osscameroon-website-api.stage.osscameroon.com"
ARG baseURL="localhost:8811"
ARG env="development"
ENV REACT_APP_API_BASE_URL=$baseURL
ENV REACT_APP_ENV=$env

Expand Down
1 change: 1 addition & 0 deletions frontend/nginx-custom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ server {
location / {
root /static;
index index.html index.htm;

try_files $uri $uri/ /index.html;
}
}

0 comments on commit b372f5a

Please sign in to comment.