From 351283de87bef45319a09aa430cab1b45f3a2388 Mon Sep 17 00:00:00 2001 From: enoch Date: Sun, 10 Aug 2025 13:36:28 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=90=AF=E7=94=A8Docker=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=9E=84=E5=BB=BA=E5=92=8C=E6=8E=A8=E9=80=81=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 取消注释Docker构建和推送配置,恢复多平台镜像构建功能, 支持linux/amd64和linux/arm64架构的镜像推送 --- .github/workflows/docker-build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 70347b4..ff9ec4a 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -45,14 +45,14 @@ jobs: type=raw,value=beta,enable=${{ endsWith(github.ref, '-beta') }} type=raw,value=latest,enable=${{ !contains(github.ref, '-') }} - # - name: Build and push Docker image - # id: build - # uses: docker/build-push-action@v5 - # with: - # context: . - # platforms: linux/amd64,linux/arm64 - # push: true - # tags: ${{ steps.meta.outputs.tags }} - # labels: ${{ steps.meta.outputs.labels }} - # build-args: | - # VERSION=${{ github.ref_name }} + - name: Build and push Docker image + id: build + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-args: | + VERSION=${{ github.ref_name }}