发版注入版本与构建时间,升级 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
+5
View File
@@ -21,6 +21,7 @@ jobs:
REGISTRY=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')
echo "REGISTRY=${REGISTRY}" >> "$GITHUB_ENV"
echo "IMAGE=${REGISTRY}/${{ gitea.repository }}" >> "$GITHUB_ENV"
echo "BUILD_TIME=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV"
- name: 下载前端最新 dist.zip 解压进嵌入目录
env:
@@ -38,6 +39,8 @@ jobs:
run: |
docker buildx build --pull \
--platform linux/amd64,linux/arm64 \
--build-arg VERSION=${{ gitea.ref_name }} \
--build-arg BUILD_TIME=${BUILD_TIME} \
--target artifact \
--output type=local,dest=./output .
mkdir -p assets
@@ -51,6 +54,8 @@ jobs:
echo "${TOKEN}" | docker login "${REGISTRY}" -u "${{ gitea.repository_owner }}" --password-stdin
docker buildx build --pull \
--platform linux/amd64,linux/arm64 \
--build-arg VERSION=${{ gitea.ref_name }} \
--build-arg BUILD_TIME=${BUILD_TIME} \
-t "${IMAGE}:${{ gitea.ref_name }}" -t "${IMAGE}:latest" \
--push .