Compare commits

...

11 Commits

Author SHA1 Message Date
a62819232e Configure nuget source in pipeline
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m37s
2026-02-24 12:51:56 +01:00
3f451b731c Fix: pipeline
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m47s
2026-02-24 12:46:40 +01:00
5dff6d2bad Fix: run-build.sh
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m31s
2026-02-24 11:51:38 +01:00
320d02f734 Update: 24.02.2025
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m57s
2026-02-24 11:46:09 +01:00
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
14 changed files with 48 additions and 22 deletions

View File

@@ -2,7 +2,7 @@ name: build-debian-package
on: on:
push: push:
tags: tags:
- '*' - "*"
jobs: jobs:
build: build:
@@ -19,13 +19,15 @@ jobs:
uses: actions/setup-dotnet@v4 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: "10.0.x" dotnet-version: "10.0.x"
- name: "Configure nuget source"
run: dotnet nuget add source --name DAV --username kocoder --password ${{ secrets.REGISTRY_TOKEN_KOCODER }} https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/nuget/index.json --store-password-in-clear-text
- 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" - name: "Create release"
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
with: with:
files: |- files: |-
./alumnihub_10.0_amd64.deb ./alumnihub.deb
./alumnihub_10.0_amd64/opt/alumnihub/Packages/*.nupkg ./alumnihub/opt/alumnihub/Packages/*.nupkg

1
.gitignore vendored Normal file
View File

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

12
.gitmodules vendored
View File

@@ -1,6 +1,3 @@
[submodule "alumnihub/opt/alumnihub-helpers"]
path = alumnihub/opt/alumnihub-helpers
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Customer.git
[submodule "oqtane.framework"] [submodule "oqtane.framework"]
path = oqtane.framework path = oqtane.framework
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/oqtane.framework.git url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/oqtane.framework.git
@@ -22,3 +19,12 @@
[submodule "fixProps"] [submodule "fixProps"]
path = fixProps path = fixProps
url = https://github.com/oqtane/oqtane.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.BlackBoard Submodule

Submodule Module.BlackBoard added at f633708b57

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,8 +1,9 @@
#!/bin/bash #!/bin/bash
adduser --system alumnihub adduser --system alumnihub
chown -R alumnihub:root /opt/alumnihub if [ ! -e /opt/alumnihub/appsettings.json ]; then
if [ -e /opt/alumnihub/appsettings.json ]; then
cp /opt/alumnihub/appsettings.release.json /opt/alumnihub/appsettings.json cp /opt/alumnihub/appsettings.release.json /opt/alumnihub/appsettings.json
fi fi
chown -R alumnihub:root /opt/alumnihub

1
interfaces Submodule

Submodule interfaces added at 3cc6eba28e

View File

@@ -1,16 +1,27 @@
#!/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" echo "Building oqtane.framework"
dotnet restore ./oqtane.framework/Oqtane.slnx dotnet restore ./oqtane.framework/Oqtane.slnx
dotnet build ./oqtane.framework/Oqtane.slnx --no-restore dotnet build ./oqtane.framework/Oqtane.slnx --no-restore
dotnet build -c Release ./oqtane.framework/Oqtane.slnx --no-restore dotnet build -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.slnx --no-restore
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore dotnet publish -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore
mkdir -p ./oqtane.framework/Oqtane.Server/Packages mkdir -p ./oqtane.framework/Oqtane.Server/Packages
dotnet restore ./interfaces/SZUAbsolventenverein.slnx
dotnet build -c "$ENVIRONMENT" ./interfaces/SZUAbsolventenverein.slnx --no-restore
echo "" echo ""
echo "Building Modules and Themes" echo "Building Modules and Themes"
@@ -18,15 +29,14 @@ for module in $(ls . | grep -E 'Module|Theme')
do do
echo "######## Building $module" echo "######## Building $module"
dotnet restore ./$module/*.slnx dotnet restore ./$module/*.slnx
dotnet build -c Release ./$module/*.slnx --no-restore dotnet build -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
dotnet publish -c Release ./$module/*.slnx --no-restore dotnet publish -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
done done
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
rm ./alumnihub/opt/alumnihub/appsettings.json 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