Compare commits
15 Commits
0.0.1-oqta
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f034c6964 | |||
| dc48b906a8 | |||
| 289f1cf6ce | |||
| 36e9f9ee39 | |||
| 346fd6b33c | |||
| fee56ed714 | |||
| 7c0e5f7e03 | |||
| 18f396f51b | |||
| 96ed3d0679 | |||
| b6e9476bda | |||
| 6c2a122796 | |||
| 63d2e92f8b | |||
| dd68c66b87 | |||
| 568bbb5b5e | |||
| 14cc769418 |
@@ -4,7 +4,6 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build the debian package
|
name: Build the debian package
|
||||||
@@ -21,6 +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
|
||||||
|
- name: "Create release"
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
./alumnihub.deb
|
||||||
|
./alumnihub/opt/alumnihub/Packages/*.nupkg
|
||||||
12
.gitmodules
vendored
12
.gitmodules
vendored
@@ -1,6 +1,3 @@
|
|||||||
[submodule "alumnihub_10.0_amd64/opt/alumnihub-helpers"]
|
|
||||||
path = alumnihub_10.0_amd64/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
1
Module.BlackBoard
Submodule
Submodule Module.BlackBoard added at 0b82942569
@@ -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.
|
||||||
Submodule Theme.SZUAbsolventenverein updated: 481544069a...637a7635cd
9
alumnihub/DEBIAN/postinst
Executable file
9
alumnihub/DEBIAN/postinst
Executable 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,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
adduser --system alumnihub
|
|
||||||
1
interfaces
Submodule
1
interfaces
Submodule
Submodule interfaces added at 5c806421e0
13
run-build.sh
13
run-build.sh
@@ -5,7 +5,9 @@ DEBIAN_PACKAGE_PATH="$2"
|
|||||||
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
|
dotnet build ./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/opt/alumnihub --no-restore
|
||||||
|
|
||||||
mkdir -p ./oqtane.framework/Oqtane.Server/Packages
|
mkdir -p ./oqtane.framework/Oqtane.Server/Packages
|
||||||
|
|
||||||
@@ -16,12 +18,13 @@ 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
|
dotnet build -c Release ./$module/*.slnx --no-restore
|
||||||
dotnet publish -c Release ./$module/*.slnx
|
dotnet publish -c Release ./$module/*.slnx --no-restore
|
||||||
done
|
done
|
||||||
|
|
||||||
dotnet build -c Release ./oqtane.framework/Oqtane.slnx
|
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
|
||||||
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub_10.0_amd64/opt/alumnihub
|
|
||||||
|
rm ./alumnihub/opt/alumnihub/appsettings.json
|
||||||
|
|
||||||
echo $VERSION $DEBIAN_PACKAGE_PATH
|
echo $VERSION $DEBIAN_PACKAGE_PATH
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user