Added ordering for timeline entries
Some checks failed
Portfolio CI/CD / build (push) Failing after 17s
Portfolio CI/CD / test (push) Has been skipped
Portfolio CI/CD / publish (push) Has been skipped

This commit is contained in:
2026-02-20 22:43:54 +01:00
parent 2a9cb2b2fb
commit eeb6e5de6a
2 changed files with 64 additions and 2 deletions

62
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,62 @@
name: Portfolio CI/CD
on:
push:
branches: [ "*" ]
tags: [ "*" ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:10.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: dotnet restore
- name: Build Projects
run: dotnet build --configuration Release --no-restore
test:
runs-on: ubuntu-latest
needs: build
container:
image: mcr.microsoft.com/dotnet/sdk:10.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: dotnet test --verbosity normal
publish:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pull LFS
run: git lfs pull
- name: Login to registry
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.leon-hoppe.de \
-u leon.hoppe --password-stdin
- name: Build backend image
run: docker build -t git.leon-hoppe.de/leon.hoppe/portfolio/backend:latest -f src/Portfolio.Api/Dockerfile .
- name: Build frontend image
run: docker build -t git.leon-hoppe.de/leon.hoppe/portfolio/frontend:latest -f src/Portfolio.Web/Dockerfile .
- name: Push backend image
run: docker push git.leon-hoppe.de/leon.hoppe/portfolio/backend:latest
- name: Push frontend image
run: docker push git.leon-hoppe.de/leon.hoppe/portfolio/frontend:latest