94
94
strategy :
95
95
matrix :
96
96
architecture :
97
- - arch : linux/arm64,linux /arm/v7
97
+ - arch : inux /arm/v7
98
98
dockerfile : Dockerfile
99
+ tag : armv7
100
+ - arch : linux/arm64
101
+ dockerfile : Dockerfile
102
+ tag : arm64
99
103
needs : build
100
104
steps :
101
105
- uses : actions/checkout@v3 # Checking out the repo
@@ -108,15 +112,15 @@ jobs:
108
112
# generate Docker tags based on the following events/attributes
109
113
tags : |
110
114
# always latest
111
- type=raw,value=latest
115
+ type=raw,value=latest,suffix=-${{ matrix.architecture.tag }}
112
116
# branch event
113
- type=ref,event=branch
117
+ type=ref,event=branch,suffix=-${{ matrix.architecture.tag }}
114
118
# tag event
115
- type=ref,event=tag
119
+ type=ref,event=tag,suffix=-${{ matrix.architecture.tag }}
116
120
# pull request event
117
- type=ref,event=pr
121
+ type=ref,event=pr,suffix=-${{ matrix.architecture.tag }}
118
122
# push event
119
- type=sha,enable=true,prefix=git-,format=short
123
+ type=sha,enable=true,prefix=git-,format=short,suffix=-${{ matrix.architecture.tag }}
120
124
- name : Download dist artifact
121
125
uses : actions/download-artifact@v3
122
126
with :
@@ -145,5 +149,5 @@ jobs:
145
149
file : docker/${{ matrix.architecture.dockerfile }}
146
150
tags : ${{ steps.meta.outputs.tags }}
147
151
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 }}
149
153
cache-to : type=inline
0 commit comments