Compare commits
10 Commits
v0.0.1-alp
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 933d194e5c | |||
| 162fd61936 | |||
| 4405df38aa | |||
| 6f0d30cde1 | |||
| 8643daa984 | |||
| c373b194d6 | |||
| 9f707e8504 | |||
| e0663ebfab | |||
| 492b55c313 | |||
| 4397453229 |
@@ -2,7 +2,7 @@ name: build-debian-package
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- '*'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -14,12 +14,12 @@ jobs:
|
|||||||
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||||
- name: "Git checkout"
|
- name: "Git checkout"
|
||||||
run: git checkout "${{ gitea.sha }}"
|
run: git checkout "${{ gitea.sha }}"
|
||||||
|
- name: "Submodules auschecken"
|
||||||
|
run: git submodule update --init
|
||||||
- name: "Dotnet SDK einrichten"
|
- name: "Dotnet SDK einrichten"
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: "10.0.x"
|
dotnet-version: "10.0.x"
|
||||||
- name: "Oqtane Framework auschecken"
|
|
||||||
run: git clone ${{ gitea.server_url }}/Diplomarbeit-Absolventenverein/oqtane.framework.git
|
|
||||||
- name: "Oqtane Framework restore"
|
- name: "Oqtane Framework restore"
|
||||||
run: dotnet restore ./oqtane.framework/Oqtane.slnx --verbosity detailed
|
run: dotnet restore ./oqtane.framework/Oqtane.slnx --verbosity detailed
|
||||||
- name: "Oqtane Framework bauen"
|
- name: "Oqtane Framework bauen"
|
||||||
@@ -27,6 +27,6 @@ jobs:
|
|||||||
- name: "Oqtane Framework publish"
|
- name: "Oqtane Framework publish"
|
||||||
run: dotnet publish -c Release ./oqtane.framework/Oqtane.slnx -o ./alumnihub_10.0_amd64/opt/alumnihub
|
run: dotnet publish -c Release ./oqtane.framework/Oqtane.slnx -o ./alumnihub_10.0_amd64/opt/alumnihub
|
||||||
- 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_10.0_amd64"
|
||||||
- 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_10.0_amd64.deb https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/debian/pool/trixie/main/upload
|
||||||
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal 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
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
Package: alumnihub
|
Package: alumnihub
|
||||||
Version: 10.0-2
|
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Essential: no
|
Essential: no
|
||||||
Priority: optional
|
Priority: optional
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
adduser --system alumnihub
|
||||||
@@ -1,2 +1 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
deluser oqtane
|
|
||||||
@@ -1,2 +1 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
useradd oqtane
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
Description=Alumnihub Webservice
|
Description=Alumnihub Webservice
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt/oqtane
|
WorkingDirectory=/opt/alumnihub
|
||||||
ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll
|
ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll
|
||||||
Restart=always
|
Restart=always
|
||||||
# Restart service after 10 seconds if the dotnet service crashes:
|
# Restart service after 10 seconds if the dotnet service crashes:
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
SyslogIdentifier=alumnihub
|
SyslogIdentifier=alumnihub
|
||||||
User=oqtane
|
User=alumnihub
|
||||||
Environment=ASPNETCORE_ENVIRONMENT=Production
|
Environment=ASPNETCORE_ENVIRONMENT=Production
|
||||||
Environment=ASPNETCORE_URLS="http://127.0.0.1:5000"
|
Environment=ASPNETCORE_URLS="http://127.0.0.1:5000"
|
||||||
Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
|
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
oqtane.framework
Submodule
1
oqtane.framework
Submodule
Submodule oqtane.framework added at f3175b6b06
@@ -2,6 +2,8 @@
|
|||||||
VERSION="$1"
|
VERSION="$1"
|
||||||
DEBIAN_PACKAGE_PATH="$2"
|
DEBIAN_PACKAGE_PATH="$2"
|
||||||
|
|
||||||
|
echo $VERSION $DEBIAN_PACKAGE_PATH
|
||||||
|
|
||||||
echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control
|
echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control
|
||||||
|
|
||||||
dpkg-deb --root-owner-group --build $DEBIAN_PACKAGE_PATH
|
dpkg-deb --root-owner-group --build $DEBIAN_PACKAGE_PATH
|
||||||
Reference in New Issue
Block a user