-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Altinn/altinn-access-manage…
…ment-frontend into renovate/microsoft.aspnetcore.openapi-9.x
- Loading branch information
Showing
172 changed files
with
8,028 additions
and
2,341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# This file was generated by GitHub and later altered to enable .net 9 | ||
name: 'CodeQL' | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
schedule: | ||
- cron: '38 17 * * 1' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze (${{ matrix.language }}) | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
|
||
# required to fetch internal or private CodeQL packs | ||
packages: read | ||
|
||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- language: csharp | ||
build-mode: none | ||
- language: javascript-typescript | ||
build-mode: none | ||
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
8.0.x | ||
9.0.x | ||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
- if: matrix.build-mode == 'manual' | ||
shell: bash | ||
run: | | ||
echo 'If you are using a "manual" build mode for one or more of the' \ | ||
'languages you are analyzing, replace this with the commands to build' \ | ||
'your code, for example:' | ||
echo ' make bootstrap' | ||
echo ' make release' | ||
exit 1 | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: '/language:${{matrix.language}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
556 changes: 278 additions & 278 deletions
556
.yarn/releases/yarn-4.5.1.cjs → .yarn/releases/yarn-4.6.0.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
# Building accessmanagement frontend | ||
FROM node:22-slim AS generate-accessmanagement-frontend | ||
# FROM node:lts as generate-accessmanagement-frontend | ||
|
||
WORKDIR /build | ||
COPY . . | ||
RUN corepack enable | ||
RUN yarn --immutable | ||
RUN yarn build | ||
RUN corepack enable && \ | ||
yarn --immutable && \ | ||
yarn build | ||
|
||
# Building the backend | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18 AS generate-accessmanagement-backend | ||
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS generate-accessmanagement-backend | ||
|
||
WORKDIR /build | ||
COPY backend . | ||
RUN dotnet build src/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI.csproj -c Release -o /app_output | ||
RUN dotnet publish src/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI/Altinn.AccessManagement.UI.csproj -c Release -o /app_output | ||
|
||
# Building the final image | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0.6-alpine3.18 AS final | ||
EXPOSE 80 | ||
#EXPOSE 443 | ||
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final | ||
|
||
WORKDIR /app | ||
# ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ | ||
# DOTNET_RUNNING_IN_CONTAINER=true | ||
ENV ASPNETCORE_ENVIRONMENT = Development | ||
ENV ASPNETCORE_HTTP_PORTS = 80 | ||
RUN apk add --no-cache icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib | ||
EXPOSE 80 | ||
|
||
ENV ASPNETCORE_ENVIRONMENT=Development | ||
ENV ASPNETCORE_HTTP_PORTS=80 | ||
|
||
COPY --from=generate-accessmanagement-backend /app_output . | ||
COPY --from=generate-accessmanagement-frontend /build/dist/assets ./wwwroot/accessmanagement/assets | ||
COPY --from=generate-accessmanagement-frontend /build/src/localizations ./wwwroot/accessmanagement/localizations | ||
COPY --from=generate-accessmanagement-frontend /build/dist/manifest.json ./wwwroot/accessmanagement | ||
|
||
RUN mkdir /tmp/logtelemetry | ||
ENTRYPOINT ["dotnet", "Altinn.AccessManagement.UI.dll"] | ||
|
||
ENTRYPOINT ["dotnet", "Altinn.AccessManagement.UI.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.