From 1b1e7a98e9202175f3768eaa6c29c85a91ae26a7 Mon Sep 17 00:00:00 2001 From: Yongjun Park Date: Fri, 3 Nov 2023 18:54:39 +0900 Subject: [PATCH] wip --- .github/workflows/build-test.yml | 20 ++++---------------- .github/workflows/s3-ci-dev.yml | 25 ++++++++----------------- .github/workflows/s3-ci.yml | 25 ++++++++----------------- 3 files changed, 20 insertions(+), 50 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 311db42e2..83cbd1cf0 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -22,19 +22,7 @@ jobs: submodules: true token: ${{ secrets.READ_PRIVATE_SUBMODULE_TOKEN }} - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 19 - - - name: Install Pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - run_install: false - - - name: Install dependencies - run: pnpm i - - - name: Build - run: pnpm run build:dev + - name: Waiting build using Docker Compose + run: | + docker compose -f docker-compose.dev.yml up -d + docker compose -f docker-compose.dev.yml logs -f diff --git a/.github/workflows/s3-ci-dev.yml b/.github/workflows/s3-ci-dev.yml index 7826d0deb..628d59735 100644 --- a/.github/workflows/s3-ci-dev.yml +++ b/.github/workflows/s3-ci-dev.yml @@ -22,24 +22,15 @@ jobs: submodules: true token: ${{ secrets.READ_PRIVATE_SUBMODULE_TOKEN }} - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 19 - - - name: Install Pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - run_install: false - - - name: Install dependencies - run: pnpm i - working-directory: ${{ env.WORKING_DIRECTORY }} + - name: Waiting build using Docker Compose + run: | + docker compose -f docker-compose.dev.yml up -d + docker compose -f docker-compose.dev.yml logs -f - - name: Build - run: pnpm run build:dev - working-directory: ${{ env.WORKING_DIRECTORY }} + - name: Copy built files to ./dist + run: | + mkdir -p ./dist + cp -r ./app/dist/* ./dist/ - name: Install AWS run: | diff --git a/.github/workflows/s3-ci.yml b/.github/workflows/s3-ci.yml index 377e249ff..14f83e498 100644 --- a/.github/workflows/s3-ci.yml +++ b/.github/workflows/s3-ci.yml @@ -22,24 +22,15 @@ jobs: submodules: true token: ${{ secrets.READ_PRIVATE_SUBMODULE_TOKEN }} - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 19 - - - name: Pnpm setup - uses: pnpm/action-setup@v2 - with: - version: 8 - run_install: false - - - name: Install dependencies - run: pnpm i - working-directory: ${{ env.WORKING_DIRECTORY }} + - name: Waiting build using Docker Compose + run: | + docker compose -f docker-compose.prod.yml up -d + docker compose -f docker-compose.prod.yml logs -f - - name: Build - run: pnpm run build - working-directory: ${{ env.WORKING_DIRECTORY }} + - name: Copy built files to ./dist + run: | + mkdir -p ./dist + cp -r ./app/dist/* ./dist/ - name: Install AWS run: |