2 Commits

Author SHA1 Message Date
0fa955f794 Updated project repo to use correct ordering 2025-12-13 11:01:43 +01:00
a2f378708f updated ci to new standart 2025-12-13 09:58:50 +01:00
2 changed files with 4 additions and 5 deletions

View File

@@ -27,13 +27,11 @@ test:
publish:
stage: publish
image: docker:latest
services:
- name: docker:dind
alias: docker
tags:
- docker
script:
- export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//')
- docker login -u leon.hoppe -p ${CI_REGISTRY_PASSWORD} registry.leon-hoppe.de
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin registry.leon-hoppe.de
- docker build -t $DOCKER_IMAGE/api:$VERSION -t $DOCKER_IMAGE/api:latest -f src/Portfolio.Api/Dockerfile .
- docker build -t $DOCKER_IMAGE/web:$VERSION -t $DOCKER_IMAGE/web:latest -f src/Portfolio.Web/Dockerfile .
- docker push $DOCKER_IMAGE/api:$VERSION

View File

@@ -9,6 +9,7 @@ internal sealed class ProjectRepository(DatabaseContext context) : IProjectRepos
public async Task<IEnumerable<Project>> GetProjects(CancellationToken ct) {
return await context.Projects
.Include(p => p.Languages)
.OrderByDescending(p => p.OrderIndex)
.ToArrayAsync(ct);
}