Compare commits

..

9 Commits

Author SHA1 Message Date
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
12 changed files with 21 additions and 16 deletions

View File

@@ -4,7 +4,6 @@ on:
tags: tags:
- '*' - '*'
jobs: jobs:
build: build:
name: Build the debian package name: Build the debian package
@@ -21,11 +20,12 @@ jobs:
with: with:
dotnet-version: "10.0.x" dotnet-version: "10.0.x"
- 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"
- 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
- uses: akkuman/gitea-release-action@v1 - name: "Create release"
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

4
.gitmodules vendored
View File

@@ -1,5 +1,5 @@
[submodule "alumnihub_10.0_amd64/opt/alumnihub-helpers"] [submodule "alumnihub/opt/alumnihub-helpers"]
path = alumnihub_10.0_amd64/opt/alumnihub-helpers path = alumnihub/opt/alumnihub-helpers
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Customer.git url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Customer.git
[submodule "oqtane.framework"] [submodule "oqtane.framework"]
path = oqtane.framework path = oqtane.framework

8
alumnihub/DEBIAN/postinst Executable file
View File

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

View File

@@ -1,4 +0,0 @@
#!/bin/bash
adduser --system alumnihub
chown -R alumnihub:root /opt/alumnihub

View File

@@ -7,7 +7,7 @@ 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 Release ./oqtane.framework/Oqtane.slnx --no-restore
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub_10.0_amd64/opt/alumnihub --no-restore dotnet publish -c Release ./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
@@ -22,7 +22,9 @@ do
dotnet publish -c Release ./$module/*.slnx --no-restore dotnet publish -c Release ./$module/*.slnx --no-restore
done done
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub_10.0_amd64/opt/alumnihub/Packages cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
rm ./alumnihub/opt/alumnihub/appsettings.json
echo $VERSION $DEBIAN_PACKAGE_PATH echo $VERSION $DEBIAN_PACKAGE_PATH