fix: 使用 docker 构建固件
This commit is contained in:
@@ -15,21 +15,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: 🚗 初始化 Node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
cache: "npm"
|
|
||||||
cache-dependency-path: "**/package-lock.json"
|
|
||||||
- name: 🔥 构建固件
|
- name: 🔥 构建固件
|
||||||
id: build
|
id: build
|
||||||
env:
|
|
||||||
OTA: ${{ inputs.ota }}
|
|
||||||
SSH_PASSWORD: open-xiaoai
|
|
||||||
run: |
|
run: |
|
||||||
cd packages/client-patch
|
cd packages/client-patch
|
||||||
npm install
|
docker run -it --rm -e OTA=${{ inputs.ota }} -v $(pwd)/assets:/app/assets -v $(pwd)/patches:/app/patches idootop/open-xiaoai:latest
|
||||||
npm run build
|
|
||||||
MODEL=$(cat assets/.model)
|
MODEL=$(cat assets/.model)
|
||||||
VERSION=$(cat assets/.version)
|
VERSION=$(cat assets/.version)
|
||||||
TAG=${MODEL}_${VERSION}
|
TAG=${MODEL}_${VERSION}
|
||||||
|
|||||||
@@ -15,21 +15,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: 🚗 初始化 Node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
cache: "npm"
|
|
||||||
cache-dependency-path: "**/package-lock.json"
|
|
||||||
- name: 🔥 构建固件
|
- name: 🔥 构建固件
|
||||||
id: build
|
id: build
|
||||||
env:
|
|
||||||
OTA: ${{ inputs.ota }}
|
|
||||||
SSH_PASSWORD: open-xiaoai
|
|
||||||
run: |
|
run: |
|
||||||
cd packages/client-patch
|
cd packages/client-patch
|
||||||
npm install
|
docker run -it --rm -e OTA=${{ inputs.ota }} -v $(pwd)/assets:/app/assets -v $(pwd)/patches:/app/patches idootop/open-xiaoai:latest
|
||||||
npm run build
|
|
||||||
MODEL=$(cat assets/.model)
|
MODEL=$(cat assets/.model)
|
||||||
VERSION=$(cat assets/.version)
|
VERSION=$(cat assets/.version)
|
||||||
TAG=${MODEL}_${VERSION}
|
TAG=${MODEL}_${VERSION}
|
||||||
|
|||||||
Reference in New Issue
Block a user