From 6077a52181fd65ada1368af1478d5518cd6f0db1 Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 30 May 2024 22:13:01 +0800 Subject: [PATCH] fix: docker container build (#2676) --- .github/workflows/backend-build.yml | 8 ------- .github/workflows/docker-build-and-push.yml | 1 + .github/workflows/frontend-build.yml | 24 ++++----------------- 3 files changed, 5 insertions(+), 28 deletions(-) diff --git a/.github/workflows/backend-build.yml b/.github/workflows/backend-build.yml index d96d6934ae..0a9758176b 100644 --- a/.github/workflows/backend-build.yml +++ b/.github/workflows/backend-build.yml @@ -45,14 +45,6 @@ jobs: shell: bash working-directory: ./deploy - # - name: Cache Maven packages - # uses: actions/cache@v4 - # with: - # path: ~/.m2 - # key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - # restore-keys: | - # ${{ runner.os }}-maven- - - name: Archive build artifacts uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index f4fdfba72f..dd7a192bb7 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -43,6 +43,7 @@ jobs: - name: Run custom Docker build script working-directory: ./deploy + shell: bash run: | chmod +x make-docker-container.sh ./make-docker-container.sh diff --git a/.github/workflows/frontend-build.yml b/.github/workflows/frontend-build.yml index bfc15e0755..bf0fe1c55b 100644 --- a/.github/workflows/frontend-build.yml +++ b/.github/workflows/frontend-build.yml @@ -30,24 +30,14 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20" - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - name: restore yarn cache - uses: actions/cache@v4 - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: yarn + cache-dependency-path: webapp/yarn.lock - name: restore node_modules uses: actions/cache@v4 with: path: "**/node_modules" - key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-node_modules-${{ hashFiles('webapp/yarn.lock') }} restore-keys: | ${{ runner.os }}-node_modules- @@ -55,7 +45,7 @@ jobs: uses: actions/cache@v4 with: path: "**/packages/*/dist" - key: ${{ runner.os }}-dist-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-dist-${{ hashFiles('webapp/yarn.lock') }} restore-keys: | ${{ runner.os }}-dist- @@ -65,12 +55,6 @@ jobs: dir: webapp cmd: install - - name: yarn lerna bootstrap - uses: borales/actions-yarn@v5 - with: - dir: webapp - cmd: lerna bootstrap - - name: build uses: borales/actions-yarn@v5 with: