From 6b95a8700c4dc9ad0abe08b47e32f8bb4fcc7f23 Mon Sep 17 00:00:00 2001 From: Thephaseless Date: Wed, 11 Dec 2024 01:01:00 +0000 Subject: [PATCH] test, then build --- .github/workflows/docker-publish.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index c89bd0d..7fa884d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -24,12 +24,6 @@ env: jobs: build: - strategy: - matrix: - include: - - arch: amd64 - - arch: arm64 - runs-on: ubuntu-latest permissions: contents: read @@ -81,11 +75,10 @@ jobs: - name: Test id: test - if: ${{matrix.arch == 'amd64'}} uses: docker/build-push-action@v6 with: context: . - platforms: linux/${{ matrix.arch }} + platforms: linux/amd64 cache-from: type=gha cache-to: type=gha,mode=max target: test @@ -100,7 +93,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/${{ matrix.arch }} + platforms: linux/amd64,linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max build-args: GITHUB_BUILD=true,VERSION=${{ github.ref_name }}