Skip to content

Commit 6f61456

Browse files
authored
Merge pull request #54 from discord-csharp/Cisien-patch-1
pi support
2 parents d021220 + d293aaa commit 6f61456

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
username: ${{ github.actor }}
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

30+
- name: Set up QEMU
31+
uses: docker/setup-qemu-action@v1
32+
3033
- name: Set up Docker Buildx
3134
id: buildx
3235
uses: docker/[email protected]
@@ -46,6 +49,7 @@ jobs:
4649
uses: docker/[email protected]
4750
with:
4851
context: .
52+
platforms: linux/arm/v7,linux/arm64,linux/amd64
4953
push: ${{ github.event_name == 'push' }}
5054
tags: ${{ steps.meta.outputs.tags }}
5155
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:7.0 as dotnet-build
1+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 as dotnet-build
2+
ARG TARGETPLATFORM
3+
ARG BUILDPLATFORM
24
WORKDIR /src
35
COPY . .
46
RUN dotnet --info
@@ -8,7 +10,9 @@ RUN dotnet build --configuration Release --no-restore
810
#RUN dotnet test --configuration Release CSharpRepl.Tests/CSharpRepl.Tests.csproj --no-build --no-restore
911
RUN dotnet publish --configuration Release CSharpRepl/CSharpRepl.csproj --no-build --no-restore -o /app
1012

11-
FROM mcr.microsoft.com/dotnet/aspnet:7.0
13+
FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet:7.0
14+
ARG TARGETPLATFORM
15+
ARG BUILDPLATFORM
1216
WORKDIR /app
1317
COPY --from=dotnet-build /app .
1418
ENTRYPOINT ["bash", "start.sh"]

0 commit comments

Comments
 (0)