Skip to content

Commit

Permalink
updated the pipelines to use .net9
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanalakshmi Gopalswamy committed Jan 16, 2025
1 parent 8878c89 commit 9ff4c6a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Build & Test
run: |
dotnet build Altinn.Auth.AuditLog.sln -v m
Expand All @@ -35,7 +35,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-at.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

env:
DOTNET_VERSION: '8.0.x'
DOTNET_VERSION: '9.0.x'

jobs:
build-container-app:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-after-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [released]

env:
DOTNET_VERSION: '8.0.x'
DOTNET_VERSION: '9.0.x'
REGISTRY: ghcr.io
REPOSITORY: altinn/altinn-auth-audit-log

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
description: The branch or tag to deploy

env:
DOTNET_VERSION: '8.0.x'
DOTNET_VERSION: '9.0.x'

jobs:
build-function-app:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-build-deploy-to-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: Select the environment

env:
DOTNET_VERSION: '8.0.x'
DOTNET_VERSION: '9.0.x'

jobs:
build-container-app:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Building the auditlog api
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
ARG SOURCE_REVISION_ID=LOCALBUILD

COPY src .
Expand All @@ -9,7 +9,7 @@ RUN dotnet build Altinn.Auth.AuditLog.csproj -c Release -o /app_output -p Source
RUN dotnet publish Altinn.Auth.AuditLog.csproj -c Release -o /app_output -p SourceRevisionId=${SOURCE_REVISION_ID}

# Building the final image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
EXPOSE 5166
WORKDIR /app
COPY --from=build /app_output .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The auditlog api maps the events to the database model and stores them in the da
The events are stored in the postgres database.

## Technologies
- .NET 8.0
- .NET 9.0
- Azure Storage Queue
- Azure Function App V4
- Azure Container App
Expand Down
4 changes: 2 additions & 2 deletions src/Altinn.Auth.AuditLog/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
COPY ["Altinn.Auth.AuditLog/Altinn.Auth.AuditLog.csproj", "Altinn.Auth.AuditLog/"]
RUN dotnet restore "Altinn.Auth.AuditLog/Altinn.Auth.AuditLog.csproj"
Expand Down

0 comments on commit 9ff4c6a

Please sign in to comment.