chore: github action build image

pull/101/head
xiaojunnuo 2024-07-23 22:54:23 +08:00
parent 2877b9b505
commit 6f2c5674c9
2 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,7 @@ jobs:
id: get_certd_version id: get_certd_version
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:
result-encoding: string
script: | script: |
const fs = require('fs'); const fs = require('fs');
const path = require('path'); const path = require('path');
@ -37,7 +38,7 @@ jobs:
console.log("certd_version:",pkg.version); console.log("certd_version:",pkg.version);
// 输出 JSON 对象,可以在后续步骤中使用 // 输出 JSON 对象,可以在后续步骤中使用
// echo "version=0.0.5" >> $GITHUB_OUTPUT // echo "version=0.0.5" >> $GITHUB_OUTPUT
return {"version":"0.0.5"} return "0.0.5"
- name: Set up the working directory - name: Set up the working directory
run: | run: |
@ -63,4 +64,4 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: | tags: |
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs}} registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}

View File

@ -1 +1 @@
3 5