chore(ci): use prebuilt image for building
Some checks failed
/ deploy_site (push) Failing after 23s

This commit is contained in:
Minhyeok Park 2024-11-12 20:02:48 +09:00
parent 6e82e10cbb
commit c9ddfbc9b8
Signed by: pmh_only
SSH Key Fingerprint: SHA256:g/OyGvi2pcd8ub9mqge/ohmDP0fZX/xOPWPIcM+9XpI

View File

@ -5,15 +5,12 @@ on:
jobs:
deploy_site:
runs-on: ubuntu-latest
container:
image: src.pmh.codes/build-tools/react2minio:latest
steps:
- uses: actions/checkout@v4
- run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
apt-get install -y nodejs
wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /tmp/mc
chmod +x /tmp/mc
/tmp/mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
- run: npm i
- run: npm run build
- run: mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
- run: pnpm i
- run: pnpm build
- run: /tmp/mc mirror $PWD/dist/ minio/ptools --overwrite