Commit 864f4ed 1 parent 93c5db7 commit 864f4ed Copy full SHA for 864f4ed
File tree 3 files changed +21
-5
lines changed
3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,20 @@ jobs:
143
143
- file : Dockerfile.al2
144
144
platform : linux
145
145
architecture : x64
146
+ runner : ubuntu-24.04
147
+ - file : Dockerfile.al2
148
+ platform : linux
149
+ architecture : arm64
150
+ runner : ubuntu-24.04-arm
146
151
- file : Dockerfile.alpine
147
152
platform : linux.alpine
148
153
architecture : x64
149
- runs-on : ubuntu-latest
154
+ runner : ubuntu-24.04
155
+ - file : Dockerfile.alpine
156
+ platform : linux.alpine
157
+ architecture : arm64
158
+ runner : ubuntu-24.04-arm
159
+ runs-on : ${{ matrix.runner }}
150
160
timeout-minutes : 10
151
161
steps :
152
162
- name : checkout
@@ -158,10 +168,12 @@ jobs:
158
168
shell : pwsh
159
169
env :
160
170
DOCKERFILE : ${{ matrix.file }}
171
+ ARCHITECTURE : ${{ matrix.architecture }}
161
172
Version : ${{ needs.create_release.outputs.version }}
162
173
run : |
163
174
docker buildx build `
164
175
-f $env:DOCKERFILE `
176
+ --build-arg arch=$env:ARCHITECTURE `
165
177
--build-arg version=$env:Version `
166
178
-o build .
167
179
Original file line number Diff line number Diff line change 1
1
FROM public.ecr.aws/amazonlinux/amazonlinux:2 AS build
2
2
3
+ ARG arch="x64"
4
+
3
5
ARG version=""
4
6
ENV Version=${version}
5
7
@@ -17,12 +19,12 @@ WORKDIR /source
17
19
# Make configs & dependencies a separate layer to improve caching & build time on code change.
18
20
COPY Directory.Build.props Directory.Build.props
19
21
COPY src/D2L.Bmx/D2L.Bmx.csproj src/D2L.Bmx/D2L.Bmx.csproj
20
- RUN dotnet restore src/D2L.Bmx -r linux-x64
22
+ RUN dotnet restore src/D2L.Bmx -r linux-${arch}
21
23
22
24
COPY . .
23
25
RUN dotnet publish src/D2L.Bmx \
24
26
--no-restore \
25
- -r linux-x64 \
27
+ -r linux-${arch} \
26
28
-o app
27
29
28
30
FROM scratch as export
Original file line number Diff line number Diff line change 1
1
FROM amd64/alpine:3.15 AS build
2
2
3
+ ARG arch="x64"
4
+
3
5
ARG version=""
4
6
ENV Version=${version}
5
7
@@ -18,12 +20,12 @@ WORKDIR /source
18
20
# Make configs & dependencies a separate layer to improve caching & build time on code change.
19
21
COPY Directory.Build.props Directory.Build.props
20
22
COPY src/D2L.Bmx/D2L.Bmx.csproj src/D2L.Bmx/D2L.Bmx.csproj
21
- RUN dotnet restore src/D2L.Bmx -r linux-musl-x64
23
+ RUN dotnet restore src/D2L.Bmx -r linux-musl-${arch}
22
24
23
25
COPY . .
24
26
RUN dotnet publish src/D2L.Bmx \
25
27
--no-restore \
26
- -r linux-musl-x64 \
28
+ -r linux-musl-${arch} \
27
29
-o app
28
30
29
31
FROM scratch as export
You can’t perform that action at this time.
0 commit comments