Compare commits

..

39 Commits

Author SHA1 Message Date
9de928f114 New: .gitignore
All checks were successful
build-debian-package / Build the debian package (push) Successful in 5m15s
2026-02-13 18:22:15 +01:00
d3a914e020 New: run-build.sh now also for Development Environments 2026-02-13 18:22:06 +01:00
3f034c6964 New: BlackBoard Module 2026-02-12 19:38:01 +01:00
dc48b906a8 Fix: local .gitmodules 2026-02-12 18:47:37 +01:00
289f1cf6ce Fix: Submodule for alumnihub-helpers
All checks were successful
build-debian-package / Build the debian package (push) Successful in 5m35s
2026-02-12 16:37:58 +01:00
36e9f9ee39 Try 2: Fix postinst script (appsettings.json)
All checks were successful
build-debian-package / Build the debian package (push) Successful in 5m19s
2026-01-30 13:38:42 +01:00
346fd6b33c Fix: build scripts
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m59s
2026-01-30 13:26:54 +01:00
fee56ed714 Fix: appsettings.json getting overwritten on upgrade
Some checks failed
build-debian-package / Build the debian package (push) Failing after 4m7s
2026-01-30 13:21:36 +01:00
7c0e5f7e03 Remove: submodule 2026-01-30 13:21:15 +01:00
18f396f51b Move alumnihub-build-directory 2026-01-30 13:21:00 +01:00
96ed3d0679 Tidy: Pipeline naming and whitespace changes 2026-01-30 12:40:33 +01:00
b6e9476bda Fixed: downstream Theme
All checks were successful
build-debian-package / Build the debian package (push) Successful in 5m9s
2026-01-30 12:36:50 +01:00
6c2a122796 Update: Theme v1.0.13
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m38s
2026-01-30 11:08:28 +01:00
63d2e92f8b Update: Theme v1.0.13
Some checks failed
build-debian-package / Build the debian package (push) Failing after 29s
2026-01-30 09:38:49 +01:00
dd68c66b87 Create a release with all Modules as artifacts
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m45s
2026-01-29 23:29:49 +01:00
568bbb5b5e Make Packages copy recursive
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m44s
2026-01-29 23:08:51 +01:00
14cc769418 Fix: rights and embed packages into the APT-Package
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m25s
2026-01-29 23:03:41 +01:00
76feb7615d Create Oqtane.Server/Packages folder in pipeline
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m52s
2026-01-29 22:37:26 +01:00
c3d521e5a0 Use: dotnet pack instead of nuget pack...
Some checks failed
build-debian-package / Build the debian package (push) Has been cancelled
2026-01-29 22:31:02 +01:00
b7b950d4ac Install nuget
Some checks failed
build-debian-package / Build the debian package (push) Failing after 30s
2026-01-29 21:44:53 +01:00
4fd49d0ea0 Add: nuget into pipeline
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m35s
2026-01-29 21:38:43 +01:00
458514e04b New: Add fixProps to bundle all modules correctly
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m3s
2026-01-29 21:32:18 +01:00
1b8c00d7df Add Modules to build script
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m8s
2026-01-29 14:28:02 +01:00
5dbaa652c5 Update: aspnetcore-runtime-dependency
All checks were successful
build-debian-package / Build the debian package (push) Successful in 2m57s
2026-01-21 09:04:38 +01:00
fb411826ca Upgrade auf net10 und alumnihub 10.0.3
All checks were successful
build-debian-package / Build the debian package (push) Successful in 2m53s
2026-01-21 08:57:42 +01:00
3cce4fd900 Fix: build script 2
All checks were successful
build-debian-package / Build the debian package (push) Successful in 2m58s
2026-01-20 11:17:51 +01:00
a67bfef0ce Fix build script
Some checks failed
build-debian-package / Build the debian package (push) Failing after 1m20s
2026-01-20 11:15:26 +01:00
0af02afb20 Rollback further (6.2.1 -> 6.1.3)
All checks were successful
build-debian-package / Build the debian package (push) Successful in 2m43s
2026-01-20 10:58:36 +01:00
17da27123e Fix build script for net 9.0
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m41s
2026-01-17 23:49:59 +01:00
f429512a14 Rollback to Oqtane Version 6.1.3 and dotnet 9.0
Some checks failed
build-debian-package / Build the debian package (push) Failing after 57s
2026-01-17 23:47:29 +01:00
933d194e5c Best-Practise: do not delete user
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m15s
2026-01-15 14:54:33 +01:00
162fd61936 Use adduser --system to prevent the script from failing
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m4s
2026-01-15 14:48:54 +01:00
4405df38aa Fix: Typo
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m13s
2026-01-15 10:40:39 +01:00
6f0d30cde1 Use git cli to checkout submodules
Some checks failed
build-debian-package / Build the debian package (push) Failing after 11s
2026-01-15 10:38:46 +01:00
8643daa984 Use oqtane.framework and customer as submodule in the pipeline
Some checks failed
build-debian-package / Build the debian package (push) Failing after 38s
2026-01-15 10:37:00 +01:00
c373b194d6 Add Customer git repository as a submodule to deploy scripts as well 2026-01-15 10:32:49 +01:00
9f707e8504 Use only numbered tags...
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m8s
2026-01-15 09:42:32 +01:00
e0663ebfab Remove Version line from control since it'S populated via the script.
Some checks failed
build-debian-package / Build the debian package (push) Failing after 2m26s
2026-01-15 09:29:45 +01:00
492b55c313 Fix: Typo
Some checks failed
build-debian-package / Build the debian package (push) Failing after 2m20s
2026-01-15 09:18:46 +01:00
24 changed files with 102 additions and 21 deletions

View File

@@ -2,8 +2,7 @@ name: build-debian-package
on: on:
push: push:
tags: tags:
- v* - '*'
jobs: jobs:
build: build:
@@ -14,19 +13,19 @@ jobs:
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git . run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
- name: "Git checkout" - name: "Git checkout"
run: git checkout "${{ gitea.sha }}" run: git checkout "${{ gitea.sha }}"
- name: "Submodules auschecken"
run: git submodule update --init
- name: "Dotnet SDK einrichten" - name: "Dotnet SDK einrichten"
uses: actions/setup-dotnet@v4 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: "10.0.x" dotnet-version: "10.0.x"
- name: "Oqtane Framework auschecken"
run: git clone ${{ gitea.server_url }}/Diplomarbeit-Absolventenverein/oqtane.framework.git
- name: "Oqtane Framework restore"
run: dotnet restore ./oqtane.framework/Oqtane.slnx --verbosity detailed
- name: "Oqtane Framework bauen"
run: dotnet build -c Release ./oqtane.framework/Oqtane.slnx
- name: "Oqtane Framework publish"
run: dotnet publish -c Release ./oqtane.framework/Oqtane.slnx -o ./alumnihub_10.0_amd64/opt/alumnihub
- name: "Build .deb" - name: "Build .deb"
run: ./run-build.sh "${{ gitea.ref_name }}"" "./alumnihub_10.0_amd64" run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub" "Release"
- name: "Upload .deb" - name: "Upload .deb"
run: curl --user kocoder:${{ secrets.REGISTRY_TOKEN_KOCODER }} --upload-file ./alumnihub_10.0_amd64.deb https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/debian/pool/trixie/main/upload run: curl --user kocoder:${{ secrets.REGISTRY_TOKEN_KOCODER }} --upload-file ./alumnihub.deb https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/debian/pool/trixie/main/upload
- name: "Create release"
uses: akkuman/gitea-release-action@v1
with:
files: |-
./alumnihub.deb
./alumnihub/opt/alumnihub/Packages/*.nupkg

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea/

30
.gitmodules vendored Normal file
View File

@@ -0,0 +1,30 @@
[submodule "oqtane.framework"]
path = oqtane.framework
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/oqtane.framework.git
[submodule "Module.AdminModules"]
path = Module.AdminModules
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Module.AdminModules.git
[submodule "Theme.SZUAbsolventenverein"]
path = Theme.SZUAbsolventenverein
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Theme.SZUAbsolventenverein.git
[submodule "Module.EventRegistration"]
path = Module.EventRegistration
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Module.EventRegistration.git
[submodule "Module.HallOfFame"]
path = Module.HallOfFame
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Module.HallOfFame.git
[submodule "Module.PremiumArea"]
path = Module.PremiumArea
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Module.PremiumArea.git
[submodule "fixProps"]
path = fixProps
url = https://github.com/oqtane/oqtane.FixProps
[submodule "alumnihub/opt/alumnihub-helpers"]
path = alumnihub/opt/alumnihub-helpers
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Customer.git
[submodule "interfaces"]
path = interfaces
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Interfaces
[submodule "Module.BlackBoard"]
path = Module.BlackBoard
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Module.BlackBoard.git

1
Module.AdminModules Submodule

Submodule Module.AdminModules added at a94527f294

1
Module.BlackBoard Submodule

Submodule Module.BlackBoard added at 0b82942569

1
Module.HallOfFame Submodule

Submodule Module.HallOfFame added at 7d11271d7c

1
Module.PremiumArea Submodule

Submodule Module.PremiumArea added at 4a1d334a5c

View File

@@ -1,2 +1,5 @@
# AlumniHub Debian Package # AlumniHub Debian Package
Skripte die mittels Gitea Actions automatisch ein APT / .deb Packet bauen und unter Packages veröffentlichen. Skripte die mittels Gitea Actions automatisch ein APT / .deb Packet bauen und unter Packages veröffentlichen.
Um ein Modul upzudaten: die Submodules updaten (auf die gewünschte Referenz bringen) dann commiten, einen git tag erstellen und alles gesammelt pushen.
Eine github/gitea actions Pipeline klont sich automatisch alle Submodules, richtet dotnet ein und ruft run-build.sh auf. in run-build.sh werden dann die einzelnen Projekte mithilfe von dem dotnet compiler kompiliert und das ergebnis im alumnihub order abgelegt. Dieser alumnihub order ist die Grundlage für das resultierende Debian Paket. Dieses wird mithilfe eines Aufrufes von dpkg-deb gebaut. Nach dem das Paket gebaut worden ist, wird dieses Debian Paket genommen und in die Gitea debian Pakete registry hochgeladen und ein release mit dem debian paket und den einzelnen Nugets auf Gitea veröffentlicht.

View File

@@ -1,5 +1,4 @@
Package: alumnihub Package: alumnihub
Version: 10.0-2
Architecture: amd64 Architecture: amd64
Essential: no Essential: no
Priority: optional Priority: optional

9
alumnihub/DEBIAN/postinst Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
adduser --system alumnihub
if [ ! -e /opt/alumnihub/appsettings.json ]; then
cp /opt/alumnihub/appsettings.release.json /opt/alumnihub/appsettings.json
fi
chown -R alumnihub:root /opt/alumnihub

1
alumnihub/DEBIAN/preinst Executable file
View File

@@ -0,0 +1 @@
#!/bin/bash

View File

@@ -2,14 +2,14 @@
Description=Alumnihub Webservice Description=Alumnihub Webservice
[Service] [Service]
WorkingDirectory=/opt/oqtane WorkingDirectory=/opt/alumnihub
ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll
Restart=always Restart=always
# Restart service after 10 seconds if the dotnet service crashes: # Restart service after 10 seconds if the dotnet service crashes:
RestartSec=5 RestartSec=5
KillSignal=SIGINT KillSignal=SIGINT
SyslogIdentifier=alumnihub SyslogIdentifier=alumnihub
User=oqtane User=alumnihub
Environment=ASPNETCORE_ENVIRONMENT=Production Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=ASPNETCORE_URLS="http://127.0.0.1:5000" Environment=ASPNETCORE_URLS="http://127.0.0.1:5000"
Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true

View File

@@ -1,2 +0,0 @@
#!/bin/bash
deluser oqtane

View File

@@ -1,2 +0,0 @@
#!/bin/bash
useradd oqtane

1
fixProps Submodule

Submodule fixProps added at 10f645be52

1
interfaces Submodule

Submodule interfaces added at 5c806421e0

1
oqtane.framework Submodule

Submodule oqtane.framework added at 6db5c924c7

View File

@@ -1,8 +1,41 @@
#!/bin/bash #!/bin/bash
VERSION="$1" VERSION="$1"
DEBIAN_PACKAGE_PATH="$2" DEBIAN_PACKAGE_PATH="$2"
ENVIRONMENT="$3"
if [ "$#" -ne 3 ]; then
echo "Error: You must provide exactly three arguments."
exit 1
fi
echo "$VERSION" "$DEBIAN_PACKAGE_PATH" "$ENVIRONMENT"
echo "Building oqtane.framework"
dotnet restore ./oqtane.framework/Oqtane.slnx
dotnet build ./oqtane.framework/Oqtane.slnx --no-restore
dotnet build -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.slnx --no-restore
dotnet publish -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore
dotnet build -c "$ENVIRONMENT" ./interfaces/SZUAbsolventenverein.slnx --no-restore
mkdir -p ./oqtane.framework/Oqtane.Server/Packages
echo ""
echo "Building Modules and Themes"
for module in $(ls . | grep -E 'Module|Theme')
do
echo "######## Building $module"
dotnet restore ./$module/*.slnx
dotnet build -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
dotnet publish -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
done
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
rm ./alumnihub/opt/alumnihub/appsettings.json
echo $VERSION $DEBIAN_PACKAGE_PATH
echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control