From 49d09eab5269d78d4ebb08cffff3add8b90c72df Mon Sep 17 00:00:00 2001 From: previ Date: Sun, 24 Mar 2024 16:53:44 +0100 Subject: [PATCH] matrix arch --- .github/workflows/build_frontend.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_frontend.yml b/.github/workflows/build_frontend.yml index d433848..0462d8c 100644 --- a/.github/workflows/build_frontend.yml +++ b/.github/workflows/build_frontend.yml @@ -94,8 +94,12 @@ jobs: strategy: matrix: architecture: - - arch: linux/arm64,linux/arm/v7 + - arch: inux/arm/v7 dockerfile: Dockerfile + tag: armv7 + - arch: linux/arm64 + dockerfile: Dockerfile + tag: arm64 needs: build steps: - uses: actions/checkout@v3 # Checking out the repo @@ -108,15 +112,15 @@ jobs: # generate Docker tags based on the following events/attributes tags: | # always latest - type=raw,value=latest + type=raw,value=latest,suffix=-${{ matrix.architecture.tag }} # branch event - type=ref,event=branch + type=ref,event=branch,suffix=-${{ matrix.architecture.tag }} # tag event - type=ref,event=tag + type=ref,event=tag,suffix=-${{ matrix.architecture.tag }} # pull request event - type=ref,event=pr + type=ref,event=pr,suffix=-${{ matrix.architecture.tag }} # push event - type=sha,enable=true,prefix=git-,format=short + type=sha,enable=true,prefix=git-,format=short,suffix=-${{ matrix.architecture.tag }} - name: Download dist artifact uses: actions/download-artifact@v3 with: @@ -145,5 +149,5 @@ jobs: file: docker/${{ matrix.architecture.dockerfile }} tags: ${{ steps.meta.outputs.tags }} context: . - cache-from: type=registry,ref=ghcr.io/coderbotorg/frontend:latest + cache-from: type=registry,ref=ghcr.io/coderbotorg/frontend:latest-${{ matrix.architecture.tag }} cache-to: type=inline