Skip to content

Commit

Permalink
Merge pull request #1940 from opengovern/ui-changes
Browse files Browse the repository at this point in the history
fix: wokflow
  • Loading branch information
mohamadch91 authored Nov 11, 2024
2 parents d2a1c4e + fe579e7 commit 5eb47ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ jobs:
working-directory: services/web-ui
run: |
echo "Navigating to code directory..."
pwd
ls
- name: Install Dependencies
run: npm install
Expand All @@ -76,15 +74,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
- name: Go Back to main Code Directory
working-directory: ../..
working-directory: ../
run: |
echo "Navigating to main directory..."
pwd
ls
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: ./services/web-ui
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
Expand Down
4 changes: 2 additions & 2 deletions docker/WebUiDockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Prepare nginx
FROM docker.io/nginx:1.25.0-alpine
COPY ./build /usr/share/nginx/html
COPY ./.env.example /usr/share/nginx/html/.env
COPY ./services/web-ui/build /usr/share/nginx/html
COPY ./services/web-ui/.env.example /usr/share/nginx/html/.env
RUN rm /etc/nginx/conf.d/default.conf
COPY ./assets/web-ui/nginx.conf /etc/nginx/conf.d

Expand Down

0 comments on commit 5eb47ed

Please sign in to comment.