发版注入版本与构建时间,升级 oci-go-sdk 65.120.0
This commit is contained in:
@@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user