Skip to content

Commit 49d09ea

Browse files
committed
matrix arch
1 parent e47b451 commit 49d09ea

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build_frontend.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,12 @@ jobs:
9494
strategy:
9595
matrix:
9696
architecture:
97-
- arch: linux/arm64,linux/arm/v7
97+
- arch: inux/arm/v7
9898
dockerfile: Dockerfile
99+
tag: armv7
100+
- arch: linux/arm64
101+
dockerfile: Dockerfile
102+
tag: arm64
99103
needs: build
100104
steps:
101105
- uses: actions/checkout@v3 # Checking out the repo
@@ -108,15 +112,15 @@ jobs:
108112
# generate Docker tags based on the following events/attributes
109113
tags: |
110114
# always latest
111-
type=raw,value=latest
115+
type=raw,value=latest,suffix=-${{ matrix.architecture.tag }}
112116
# branch event
113-
type=ref,event=branch
117+
type=ref,event=branch,suffix=-${{ matrix.architecture.tag }}
114118
# tag event
115-
type=ref,event=tag
119+
type=ref,event=tag,suffix=-${{ matrix.architecture.tag }}
116120
# pull request event
117-
type=ref,event=pr
121+
type=ref,event=pr,suffix=-${{ matrix.architecture.tag }}
118122
# push event
119-
type=sha,enable=true,prefix=git-,format=short
123+
type=sha,enable=true,prefix=git-,format=short,suffix=-${{ matrix.architecture.tag }}
120124
- name: Download dist artifact
121125
uses: actions/download-artifact@v3
122126
with:
@@ -145,5 +149,5 @@ jobs:
145149
file: docker/${{ matrix.architecture.dockerfile }}
146150
tags: ${{ steps.meta.outputs.tags }}
147151
context: .
148-
cache-from: type=registry,ref=ghcr.io/coderbotorg/frontend:latest
152+
cache-from: type=registry,ref=ghcr.io/coderbotorg/frontend:latest-${{ matrix.architecture.tag }}
149153
cache-to: type=inline

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy