diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml
index 08fcf6d..d59e622 100644
--- a/.gitea/workflows/build.yml
+++ b/.gitea/workflows/build.yml
@@ -4,10 +4,19 @@ on:
push:
branches:
- main
+ - develop
+ - dev
jobs:
build-and-push:
- runs-on: self-hosted # matcher labelen pƄ runneren din
+ runs-on: self-hosted
+
+ env:
+ # Denne gir f.eks:
+ # main ā latest
+ # develop ā dev
+ # dev ā dev
+ TAG: ${{ github.ref_name == 'main' && 'latest' || 'dev' }}
steps:
- name: Checkout
@@ -18,37 +27,37 @@ jobs:
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.theriise.net -u steinhelge --password-stdin
# ---------- Frontend ----------
- - name: Build Frontend
+ - name: Build Frontend (${{ env.TAG }})
run: |
docker build \
- -t gitea.theriise.net/steinhelge/minattest-frontend:latest \
+ -t gitea.theriise.net/steinhelge/minattest-frontend:${TAG} \
-f frontend/minattest-app/Dockerfile \
frontend/minattest-app
- - name: Push Frontend
+ - name: Push Frontend (${{ env.TAG }})
run: |
- docker push gitea.theriise.net/steinhelge/minattest-frontend:latest
+ docker push gitea.theriise.net/steinhelge/minattest-frontend:${TAG}
# ---------- Backend API ----------
- - name: Build API
+ - name: Build API (${{ env.TAG }})
run: |
docker build \
- -t gitea.theriise.net/steinhelge/minattest-api:latest \
+ -t gitea.theriise.net/steinhelge/minattest-api:${TAG} \
-f backend/Dockerfile \
backend
- - name: Push API
+ - name: Push API (${{ env.TAG }})
run: |
- docker push gitea.theriise.net/steinhelge/minattest-api:latest
+ docker push gitea.theriise.net/steinhelge/minattest-api:${TAG}
# ---------- App Host / BFF ----------
- - name: Build App Host
+ - name: Build App Host (${{ env.TAG }})
run: |
docker build \
- -t gitea.theriise.net/steinhelge/minattest-app-host:latest \
+ -t gitea.theriise.net/steinhelge/minattest-app-host:${TAG} \
-f frontend/minattest-app-host/Dockerfile \
frontend/minattest-app-host
- - name: Push App Host
+ - name: Push App Host (${{ env.TAG }})
run: |
- docker push gitea.theriise.net/steinhelge/minattest-app-host:latest
+ docker push gitea.theriise.net/steinhelge/minattest-app-host:${TAG}
diff --git a/backend/.config/dotnet-tools.json b/backend/.config/dotnet-tools.json
index 7cf5ad2..14c1c90 100644
--- a/backend/.config/dotnet-tools.json
+++ b/backend/.config/dotnet-tools.json
@@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"dotnet-ef": {
- "version": "9.0.9",
+ "version": "9.0.11",
"commands": [
"dotnet-ef"
],
diff --git a/backend/src/MinAttest.Application/MinAttest.Application.csproj b/backend/src/MinAttest.Application/MinAttest.Application.csproj
index 44f4d95..5adf1f8 100644
--- a/backend/src/MinAttest.Application/MinAttest.Application.csproj
+++ b/backend/src/MinAttest.Application/MinAttest.Application.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913095523_InitialSqlServer.Designer.cs b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913095523_InitialSqlServer.Designer.cs
index 2f632b1..1950b97 100644
--- a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913095523_InitialSqlServer.Designer.cs
+++ b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913095523_InitialSqlServer.Designer.cs
@@ -20,7 +20,7 @@ namespace MinAttest.Infrastructure.Data.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "9.0.9")
+ .HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
diff --git a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913104919_AddAttestVerificationCheck.Designer.cs b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913104919_AddAttestVerificationCheck.Designer.cs
index 41f5717..75032aa 100644
--- a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913104919_AddAttestVerificationCheck.Designer.cs
+++ b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913104919_AddAttestVerificationCheck.Designer.cs
@@ -20,7 +20,7 @@ namespace MinAttest.Infrastructure.Data.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "9.0.9")
+ .HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
diff --git a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913112309_EnableTemporalTables.Designer.cs b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913112309_EnableTemporalTables.Designer.cs
index 9446902..3f2cb30 100644
--- a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913112309_EnableTemporalTables.Designer.cs
+++ b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913112309_EnableTemporalTables.Designer.cs
@@ -20,7 +20,7 @@ namespace MinAttest.Infrastructure.Data.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "9.0.9")
+ .HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
diff --git a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913122233_AddEmployerUser.Designer.cs b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913122233_AddEmployerUser.Designer.cs
index c8bd5d5..d281d0a 100644
--- a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913122233_AddEmployerUser.Designer.cs
+++ b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913122233_AddEmployerUser.Designer.cs
@@ -20,7 +20,7 @@ namespace MinAttest.Infrastructure.Data.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "9.0.9")
+ .HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
diff --git a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913124425_AddAttestContentColumns.Designer.cs b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913124425_AddAttestContentColumns.Designer.cs
index 42214ee..6ba54e0 100644
--- a/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913124425_AddAttestContentColumns.Designer.cs
+++ b/backend/src/MinAttest.Infrastructure/Data/Migrations/20250913124425_AddAttestContentColumns.Designer.cs
@@ -20,7 +20,7 @@ namespace MinAttest.Infrastructure.Data.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "9.0.9")
+ .HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
diff --git a/backend/src/MinAttest.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs b/backend/src/MinAttest.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs
index b995fc7..89f3d87 100644
--- a/backend/src/MinAttest.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs
+++ b/backend/src/MinAttest.Infrastructure/Data/Migrations/AppDbContextModelSnapshot.cs
@@ -17,7 +17,7 @@ namespace MinAttest.Infrastructure.Data.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "9.0.9")
+ .HasAnnotation("ProductVersion", "9.0.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
diff --git a/backend/tests/MinAttest.Tests/MinAttest.Tests.csproj b/backend/tests/MinAttest.Tests/MinAttest.Tests.csproj
index 22dd260..94a0f0a 100644
--- a/backend/tests/MinAttest.Tests/MinAttest.Tests.csproj
+++ b/backend/tests/MinAttest.Tests/MinAttest.Tests.csproj
@@ -12,9 +12,9 @@
-
-
-
+
+
+