Add .deb bundling automation
Some checks failed
build-docker-imge / Build the docker container (push) Failing after 6s

This commit is contained in:
2026-01-13 11:27:44 +01:00
parent ef5878e88a
commit 707a4621de
11 changed files with 34 additions and 6 deletions

View File

@@ -0,0 +1,27 @@
name: build-docker-imge
on:
- push
jobs:
build:
name: Build the docker container
runs-on: ubuntu-latest
steps:
- name: "Git clone"
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
- name: "Git checkout"
run: git checkout "${{ gitea.sha }}"
- name: "Dotnet SDK einrichten"
run: apt install dotnet-sdk-10.0
- name: "Oqtane Framework auschecken"
run: git clone ${{ gitea.server_url }}/Diplomarbeit-Absolventenverein/oqtane.framework.git
- 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: dpkg-deb --root-owner-group --build ./alumnihub_10.0_amd64
- name: "Upload .deb"
run: curl --user ${{ secrets.CI_RUNNER_USER }}:${{ secrets.CI_RUNNER_TOKEN }} --upload-file ./alumnihub_10.0_amd64.deb https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/debian/pool/trixie/main/upload

View File

@@ -1,2 +0,0 @@
#!/bin/bash
systemctl daemon-reload

View File

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

View File

@@ -1,5 +1,5 @@
Package: oqtaneabsolventenverein
Version: 10.0
Package: alumnihub
Version: 10.0-1
Architecture: amd64
Essential: no
Priority: optional

View File

@@ -0,0 +1 @@
#!/bin/bash

View File

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

View File

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