Skip to content

Commit

Permalink
matrix arch
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Mar 24, 2024
1 parent e47b451 commit 49d09ea
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 49d09ea

Please sign in to comment.