From 1c36ff8e22a5c973fcdf160473b437a20b526a7f Mon Sep 17 00:00:00 2001 From: enoch Date: Sun, 10 Aug 2025 13:27:18 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E7=A6=81=E7=94=A8Docker=20Hub=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=92=8C=E6=8E=A8=E9=80=81=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 暂时注释掉Docker Buildx设置、Docker Hub登录和镜像构建推送步骤, 保留Container Registry登录和元数据提取功能。 --- .github/workflows/docker-build.yml | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 72df382..9593917 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -15,14 +15,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v3 - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + # - name: Log in to Docker Hub + # uses: docker/login-action@v3 + # with: + # username: ${{ secrets.DOCKERHUB_USERNAME }} + # password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Log in to Container Registry uses: docker/login-action@v3 @@ -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 }}