修改10
Some checks failed
Build and Release / build-and-test (arm64, alpine) (push) Successful in 7s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 7s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 14s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 14s
Build and Release / release (push) Failing after 11s
Build and Release / docker-images (push) Successful in 31s
Some checks failed
Build and Release / build-and-test (arm64, alpine) (push) Successful in 7s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 7s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 14s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 14s
Build and Release / release (push) Failing after 11s
Build and Release / docker-images (push) Successful in 31s
This commit is contained in:
@@ -131,17 +131,21 @@ jobs:
|
||||
|
||||
- name: Build and push Docker images
|
||||
run: |
|
||||
REGISTRY="${{ gitea.server_url }}/${{ gitea.repository }}"
|
||||
# 移除 URL 中的 https:// 前缀
|
||||
REGISTRY=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')/${{ gitea.repository }}
|
||||
TAG="${{ steps.tag.outputs.tag }}"
|
||||
|
||||
|
||||
echo "📦 Docker Registry: ${REGISTRY}"
|
||||
echo "📦 Docker Tag: ${TAG}"
|
||||
|
||||
BUILD_ARGS="--pull --push --platform linux/amd64,linux/arm64 \
|
||||
--build-arg TARGZ_FILE_AMD64=${PRODUCT_NAME}-amd64-alpine-${PACKAGE_VERSION}.tar.gz \
|
||||
--build-arg TARGZ_FILE_ARM64=${PRODUCT_NAME}-arm64-alpine-${PACKAGE_VERSION}.tar.gz \
|
||||
--provenance=false --sbom=false"
|
||||
|
||||
|
||||
echo "🐳 Building server image..."
|
||||
docker buildx build $BUILD_ARGS -t "${REGISTRY}/server:${TAG}" -f docker/Dockerfile.Server .
|
||||
|
||||
|
||||
echo "🐳 Building daemon image..."
|
||||
docker buildx build $BUILD_ARGS -t "${REGISTRY}/daemon:${TAG}" -f docker/Dockerfile.Daemon .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user