发版注入版本与构建时间,升级 oci-go-sdk 65.120.0
CI / test (push) Successful in 43s
Release / release (push) Successful in 52s

This commit is contained in:
Wang Defa
2026-07-09 19:29:45 +08:00
parent 3e0389c1e9
commit 4af6a0ca92
7 changed files with 36 additions and 11 deletions
+7
View File
@@ -30,8 +30,12 @@ jobs:
- name: 构建双架构二进制(artifact stage 导出)
run: |
BUILD_TIME=$(date -u +%Y-%m-%dT%H:%M:%SZ)
echo "BUILD_TIME=${BUILD_TIME}" >> "$GITHUB_ENV"
docker buildx build --pull \
--platform linux/amd64,linux/arm64 \
--build-arg VERSION=${{ github.ref_name }} \
--build-arg BUILD_TIME=${BUILD_TIME} \
--target artifact \
--output type=local,dest=./output .
mkdir -p assets
@@ -67,6 +71,9 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
provenance: false
build-args: |
VERSION=${{ github.ref_name }}
BUILD_TIME=${{ env.BUILD_TIME }}
tags: |
${{ env.IMAGE }}:${{ github.ref_name }}
${{ env.IMAGE }}:latest