diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c903068a..3970ab99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/aoe-web-frontend/deploy-scripts/01-build.sh b/aoe-web-frontend/deploy-scripts/01-build.sh new file mode 100755 index 00000000..6cb90efe --- /dev/null +++ b/aoe-web-frontend/deploy-scripts/01-build.sh @@ -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 + + diff --git a/deploy-scripts/01-build.sh b/deploy-scripts/01-build.sh index 59c090db..a8bf98be 100755 --- a/deploy-scripts/01-build.sh +++ b/deploy-scripts/01-build.sh @@ -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" \ No newline at end of file +"${CURRENT_DIR}/../aoe-data-services/deploy-scripts/01-build.sh"