Compare commits
21 Commits
v0.0.1-alp
...
0.0.1-oqta
| Author | SHA1 | Date | |
|---|---|---|---|
| 14cc769418 | |||
| 76feb7615d | |||
| c3d521e5a0 | |||
| b7b950d4ac | |||
| 4fd49d0ea0 | |||
| 458514e04b | |||
| 1b8c00d7df | |||
| 5dbaa652c5 | |||
| fb411826ca | |||
| 3cce4fd900 | |||
| a67bfef0ce | |||
| 0af02afb20 | |||
| 17da27123e | |||
| f429512a14 | |||
| 933d194e5c | |||
| 162fd61936 | |||
| 4405df38aa | |||
| 6f0d30cde1 | |||
| 8643daa984 | |||
| c373b194d6 | |||
| 9f707e8504 |
@@ -2,7 +2,7 @@ name: build-debian-package
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
- '*'
|
||||
|
||||
|
||||
jobs:
|
||||
@@ -14,18 +14,12 @@ jobs:
|
||||
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||
- name: "Git checkout"
|
||||
run: git checkout "${{ gitea.sha }}"
|
||||
- name: "Submodules auschecken"
|
||||
run: git submodule update --init
|
||||
- name: "Dotnet SDK einrichten"
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
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"
|
||||
run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub_10.0_amd64"
|
||||
- name: "Upload .deb"
|
||||
|
||||
24
.gitmodules
vendored
Normal file
24
.gitmodules
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
[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"]
|
||||
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
|
||||
1
Module.AdminModules
Submodule
1
Module.AdminModules
Submodule
Submodule Module.AdminModules added at a94527f294
1
Module.EventRegistration
Submodule
1
Module.EventRegistration
Submodule
Submodule Module.EventRegistration added at 0a3890e411
1
Module.HallOfFame
Submodule
1
Module.HallOfFame
Submodule
Submodule Module.HallOfFame added at 7d11271d7c
1
Module.PremiumArea
Submodule
1
Module.PremiumArea
Submodule
Submodule Module.PremiumArea added at 4a1d334a5c
1
Theme.SZUAbsolventenverein
Submodule
1
Theme.SZUAbsolventenverein
Submodule
Submodule Theme.SZUAbsolventenverein added at 481544069a
@@ -1 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash
|
||||
adduser --system alumnihub
|
||||
|
||||
chown -R alumnihub:root /opt/alumnihub
|
||||
@@ -1,2 +1 @@
|
||||
#!/bin/bash
|
||||
deluser oqtane
|
||||
#!/bin/bash
|
||||
@@ -1,2 +1 @@
|
||||
#!/bin/bash
|
||||
useradd oqtane
|
||||
#!/bin/bash
|
||||
@@ -2,14 +2,14 @@
|
||||
Description=Alumnihub Webservice
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/oqtane
|
||||
WorkingDirectory=/opt/alumnihub
|
||||
ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll
|
||||
Restart=always
|
||||
# Restart service after 10 seconds if the dotnet service crashes:
|
||||
RestartSec=5
|
||||
KillSignal=SIGINT
|
||||
SyslogIdentifier=alumnihub
|
||||
User=oqtane
|
||||
User=alumnihub
|
||||
Environment=ASPNETCORE_ENVIRONMENT=Production
|
||||
Environment=ASPNETCORE_URLS="http://127.0.0.1:5000"
|
||||
Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
||||
|
||||
1
alumnihub_10.0_amd64/opt/alumnihub-helpers
Submodule
1
alumnihub_10.0_amd64/opt/alumnihub-helpers
Submodule
Submodule alumnihub_10.0_amd64/opt/alumnihub-helpers added at 957e587593
1
fixProps
Submodule
1
fixProps
Submodule
Submodule fixProps added at 10f645be52
1
oqtane.framework
Submodule
1
oqtane.framework
Submodule
Submodule oqtane.framework added at 6db5c924c7
22
run-build.sh
22
run-build.sh
@@ -2,6 +2,28 @@
|
||||
VERSION="$1"
|
||||
DEBIAN_PACKAGE_PATH="$2"
|
||||
|
||||
echo "Building oqtane.framework"
|
||||
|
||||
dotnet restore ./oqtane.framework/Oqtane.slnx
|
||||
dotnet build ./oqtane.framework/Oqtane.slnx
|
||||
dotnet build -c Release ./oqtane.framework/Oqtane.slnx
|
||||
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub_10.0_amd64/opt/alumnihub
|
||||
|
||||
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 Release ./$module/*.slnx
|
||||
dotnet publish -c Release ./$module/*.slnx
|
||||
done
|
||||
|
||||
cp ./oqtane.framework/Oqtane.Server/Packages ./alumnihub_10.0_amd64/opt/alumnihub/Packages
|
||||
|
||||
echo $VERSION $DEBIAN_PACKAGE_PATH
|
||||
|
||||
echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control
|
||||
|
||||
Reference in New Issue
Block a user