6 Commits

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

View File

@@ -14,12 +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"

6
.gitmodules vendored Normal file
View File

@@ -0,0 +1,6 @@
[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

View File

@@ -1 +1,2 @@
#!/bin/bash
#!/bin/bash
adduser --system alumnihub

View File

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

View File

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

View File

@@ -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
oqtane.framework Submodule

Submodule oqtane.framework added at f3175b6b06