From 2ba46c5e0e819712ed7ea7863dd237484857b43f Mon Sep 17 00:00:00 2001 From: imsyy Date: Thu, 6 Jun 2024 17:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker.yml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 094399f..339a770 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,9 +8,6 @@ jobs: build-docker: name: Push Docker image to multiple registries runs-on: ubuntu-latest - strategy: - matrix: - platform: [linux/amd64, linux/arm/v7, linux/arm64] permissions: packages: write contents: read @@ -24,14 +21,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Cache Docker layers - uses: actions/cache@v4 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - name: Log in to Docker Hub uses: docker/login-action@v3 with: @@ -58,14 +47,10 @@ jobs: with: context: . file: ./Dockerfile + platforms: | + linux/amd64 + linux/arm/v7 + linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: ${{ matrix.platform }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new - - - name: Move cache - run: | - rm -rf /tmp/.buildx-cache - mv /tmp/.buildx-cache-new /tmp/.buildx-cache + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file