From fc5f813dad91a6fdd8d94acca319eec052df715e Mon Sep 17 00:00:00 2001 From: Matteo Roggia Date: Wed, 8 Jan 2025 17:08:30 +0100 Subject: [PATCH] chore(ci-cd): removed olt failing build-frontend step in wcstore-docker action. Frontend is built and deployed by frontend chore(doc): updated frontend/readme to fix missing /dist folder --- .github/workflows/wcstore-docker.yml | 33 ---------------------------- frontend/README.md | 7 ++++++ 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/.github/workflows/wcstore-docker.yml b/.github/workflows/wcstore-docker.yml index fc63b6d8..c31824f2 100644 --- a/.github/workflows/wcstore-docker.yml +++ b/.github/workflows/wcstore-docker.yml @@ -47,39 +47,6 @@ jobs: working-directory: ./backend/delivery-service/infrastructure/docker docker-compose-file: docker-compose.local-wcs.yml - build-frontend: - runs-on: ubuntu-20.04 - if: github.ref == 'refs/heads/prod' - concurrency: build-frontend - env: - DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-frontend - DOCKER_TAG: latest - - steps: - - name: Checkout source code - uses: noi-techpark/github-actions/checkout@v2 - - - name: Setup node and yarn - uses: actions/setup-node@v2 - with: - node-version: '14.x' - cache: 'yarn' - cache-dependency-path: frontend/yarn.lock - - - name: Build - run: | - yarn install - yarn run build - working-directory: frontend - - - name: Build and push images - uses: noi-techpark/github-actions/docker-build-and-push@v2 - with: - docker-username: ${{ github.actor }} - docker-password: ${{ secrets.GITHUB_TOKEN }} - working-directory: frontend/docker - docker-compose-file: docker-compose.local-wcs.yml - build-cli: runs-on: ubuntu-20.04 if: github.ref == 'refs/heads/prod' diff --git a/frontend/README.md b/frontend/README.md index ab3c37e0..1d5e8c7c 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -101,6 +101,13 @@ Adjust the baseURL to where the API is running. The API is provided by "data-ser We use [docker-compose](https://docs.docker.com/compose/) for local development. +Before starting the frontend using docker-compose it is necessary to build the application on **Node 14.\*** using: + +```bash +yarn install +yarn generate +``` + ```bash # Change into directory $ cd odh-web-components-store/frontend/