Skip to content

Commit

Permalink
fix: use distorless multiplatform container
Browse files Browse the repository at this point in the history
  • Loading branch information
Fritz (Fredrick Seitz) committed Sep 21, 2024
1 parent a48d631 commit fdedbb4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET Core
Expand Down Expand Up @@ -38,7 +40,7 @@ jobs:
- name: Docker Build and Push
if: steps.release.outputs.new_release_published == 'true'
run: |
docker build -t latebitflip/bulwark.auth:${{ steps.release.outputs.new_release_version }} .
docker build -t latebitflip/bulwark.auth:latest .
docker push latebitflip/bulwark.auth:${{ steps.release.outputs.new_release_version }}
docker push latebitflip/bulwark.auth:latest
docker buildx build -t latebitflip/bulwark.auth:${{ steps.release.outputs.new_release_version }} --platform linux/arm64,linux/amd64 --push .
docker buildx build -t latebitflip/bulwark.auth:latest --platform linux/arm64,linux/amd64 --push .
# docker push latebitflip/bulwark.auth:${{ steps.release.outputs.new_release_version }}
# docker push latebitflip/bulwark.auth:latest
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS base
USER $APP_UID
ARG TARGETARCH
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
Expand Down
2 changes: 1 addition & 1 deletion src/Bulwark.Auth/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using MongoDB.Driver;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
//trigger build: update docker build with distroless
//trigger build: update docker build with multi-platform build
var applicationBuilder = WebApplication.CreateBuilder(args);
DotEnv.Load(options: new DotEnvOptions(overwriteExistingVars: false));
//AppConfig must be initialized after DotEnv.Load for environment variables to be available
Expand Down

0 comments on commit fdedbb4

Please sign in to comment.