Skip to content

Commit 1cf3f1c

Browse files
author
Timothy Dodd
committed
Build rd-ui library in CI/CD and Docker pipeline
Added a step to build the rd-ui library in main.yml and Dockerfile. Updated the CI/CD pipeline to ensure the library is built before the main application build. Enabled submodule checkout in the repository step. Added `continue-on-error: true` to specific steps to allow the workflow to proceed despite errors.
1 parent c693970 commit 1cf3f1c

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ jobs:
4040
build-frontend:
4141
name: Build Frontend
4242
runs-on: ubuntu-latest
43-
43+
4444
steps:
4545
- name: Checkout repository
4646
uses: actions/checkout@v4
47+
with:
48+
submodules: recursive
4749

4850
- name: Setup Node.js
4951
uses: actions/setup-node@v4
@@ -61,6 +63,10 @@ jobs:
6163
run: npm run lint
6264
continue-on-error: true
6365

66+
- name: Build rd-ui library
67+
working-directory: src/MailVoidWeb
68+
run: npm run lib:build
69+
6470
- name: Build
6571
working-directory: src/MailVoidWeb
6672
run: npm run build

src/MailVoidApi/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ COPY . .
2424
RUN chmod +x ./MailVoidApi/replace_vars.sh
2525
RUN ./MailVoidApi/replace_vars.sh ./MailVoidWeb/src/environments
2626

27+
# Build rd-ui library before main build
28+
WORKDIR "/src/MailVoidWeb"
29+
RUN npm ci
30+
RUN npm run lib:build
31+
2732
WORKDIR "/src/MailVoidApi"
2833
RUN dotnet build "./MailVoidApi.csproj" -c $BUILD_CONFIGURATION -o /app/build
2934

0 commit comments

Comments
 (0)