6 Commits
0.0.2 ... 0.0.3

Author SHA1 Message Date
Felix Weiß
0a0a1e1909 Fix 2024-01-01 18:20:56 +01:00
Felix Weiß
5e247498ce removed arm v7 2024-01-01 17:47:31 +01:00
Felix Weiß
90bde5fd5f removed arm v6 2024-01-01 17:44:20 +01:00
Felix Weiß
7a75abf056 Fix build 2024-01-01 17:38:40 +01:00
Felix Weiß
2d01fddf68 Fix build 2024-01-01 17:36:00 +01:00
Felix Weiß
4f9d607509 Fixed platforms to include arm 2024-01-01 17:33:04 +01:00
3 changed files with 30 additions and 1 deletions

View File

@@ -15,6 +15,12 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
@@ -33,7 +39,8 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ${{ github.workspace }}/src
file: ${{ github.workspace }}/src/DynDNSv2/Dockerfile
file: ${{ github.workspace }}/src/DynDNSv2/MultiBuild.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -6,6 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<!--<ContainerFamily>alpine</ContainerFamily>-->
<UserSecretsId>abe55787-bc11-416d-85aa-eaf544f21fe1</UserSecretsId>
</PropertyGroup>

View File

@@ -0,0 +1,21 @@
# Learn about building .NET container images:
# https://github.com/dotnet/dotnet-docker/blob/main/samples/README.md
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
ARG TARGETARCH
WORKDIR /source
# copy csproj and restore as distinct layers
COPY ./DynDNSv2/DynDNSv2.csproj .
RUN dotnet restore -a $TARGETARCH
# copy and publish app and libraries
COPY ./DynDNSv2/. .
RUN dotnet publish --no-restore -a $TARGETARCH -o /app
# Enable globalization and time zones:
# https://github.com/dotnet/dotnet-docker/blob/main/samples/enable-globalization.md
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["./DynDNSv2"]