mirror of
https://github.com/certd/certd.git
synced 2026-05-01 02:17:27 +08:00
chore: github action build image
This commit is contained in:
@@ -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}}
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
3
|
5
|
||||||
|
|||||||
Reference in New Issue
Block a user