From e79cb437350ec3b53480d8b3b069a65e4f5e54f9 Mon Sep 17 00:00:00 2001 From: Loc Nguyen Date: Thu, 26 Dec 2024 10:37:47 +0700 Subject: [PATCH] feature/IVYPORTAL-18151-Create-Github-Action-for-Building-Documentation --- .github/workflows/portal-documentation.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/portal-documentation.yaml b/.github/workflows/portal-documentation.yaml index 5616180f6d..7d97c34a90 100644 --- a/.github/workflows/portal-documentation.yaml +++ b/.github/workflows/portal-documentation.yaml @@ -50,18 +50,20 @@ jobs: shell: bash - - name: Build Docker image for building - run: docker build -t build-portal-modules -f build/Dockerfile . + # - name: Build Docker image for building + # run: docker build -t build-portal-modules -f build/Dockerfile . - name: Build Modules id: build run: | + addgroup --gid 1001 build && adduser --uid 1001 --gid 1001 --disabled-password --gecos "" build + MODULES=("AxonIvyPortal/portal-components" "AxonIvyPortal/portal" "AxonIvyPortal/PortalKitTestHelper" "Showcase/portal-user-examples" "Showcase/portal-developer-examples" "Showcase/InternalSupport" "Showcase/portal-components-examples") BUILT_MODULES=() for MODULE in "${MODULES[@]}"; do MODULE_NAME=$(basename $MODULE) - docker run --rm build-portal-modules mvn clean install -f ${MODULE}/pom.xml + mvn clean install -f ${MODULE}/pom.xml BUILT_MODULES+=("$MODULE") done