Skip to content

Commit

Permalink
Setup frontend build in Gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
hsalokor committed Dec 11, 2024
1 parent 9ff31bb commit 613946a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
IMAGE_TAG: ga-${{ github.run_number }}
TRUST_STORE_PASSWORD: ${{ secrets.TRUST_STORE_PASSWORD }}

- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: web-frontend
path: |
aoe-web-frontend/dist
lint:
name: 02-lint.sh
runs-on: ubuntu-24.04
Expand Down
19 changes: 19 additions & 0 deletions aoe-web-frontend/deploy-scripts/01-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail

# shellcheck source=../scripts/common-functions.sh
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../../scripts/common-functions.sh"

function main {
local aoe_service_name="aoe-web-frontend"
local service_image_tag="AOE_WEB_FRONTEND_TAG"

cd "$repo/aoe-web-frontend"

npm install
npm run build-prod
}

main


8 changes: 7 additions & 1 deletion deploy-scripts/01-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ readonly CURRENT_DIR
# Run web backend buildscript
"${CURRENT_DIR}/../aoe-web-backend/deploy-scripts/01-build.sh"

# Run data analytics buildscript
"${CURRENT_DIR}/../aoe-data-analytics/deploy-scripts/01-build.sh"

# Run web frontend buildscript
"${CURRENT_DIR}/../aoe-web-frontend/deploy-scripts/01-build.sh"

# Run data services buildscript
"${CURRENT_DIR}/../aoe-data-services/deploy-scripts/01-build.sh"
"${CURRENT_DIR}/../aoe-data-services/deploy-scripts/01-build.sh"

0 comments on commit 613946a

Please sign in to comment.