chore(ci): use prebuilt image for building
Some checks failed
/ deploy_site (push) Failing after 23s
Some checks failed
/ deploy_site (push) Failing after 23s
This commit is contained in:
parent
6e82e10cbb
commit
c9ddfbc9b8
@ -5,15 +5,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy_site:
|
deploy_site:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: src.pmh.codes/build-tools/react2minio:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
|
||||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
|
- run: pnpm i
|
||||||
apt-get install -y nodejs
|
- run: pnpm build
|
||||||
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: /tmp/mc mirror $PWD/dist/ minio/ptools --overwrite
|
- run: /tmp/mc mirror $PWD/dist/ minio/ptools --overwrite
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user