Add .deb bundling automation
Some checks failed
build-docker-imge / Build the docker container (push) Failing after 6s
Some checks failed
build-docker-imge / Build the docker container (push) Failing after 6s
This commit is contained in:
27
.gitea/workflows/build-debian-package.yml
Normal file
27
.gitea/workflows/build-debian-package.yml
Normal 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
|
||||||
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
systemctl daemon-reload
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
useradd oqtane
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
Package: oqtaneabsolventenverein
|
Package: alumnihub
|
||||||
Version: 10.0
|
Version: 10.0-1
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Essential: no
|
Essential: no
|
||||||
Priority: optional
|
Priority: optional
|
||||||
1
alumnihub_10.0_amd64/DEBIAN/postinst
Executable file
1
alumnihub_10.0_amd64/DEBIAN/postinst
Executable file
@@ -0,0 +1 @@
|
|||||||
|
#!/bin/bash
|
||||||
2
alumnihub_10.0_amd64/DEBIAN/postrm
Normal file
2
alumnihub_10.0_amd64/DEBIAN/postrm
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
deluser oqtane
|
||||||
2
alumnihub_10.0_amd64/DEBIAN/preinst
Executable file
2
alumnihub_10.0_amd64/DEBIAN/preinst
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
useradd oqtane
|
||||||
0
alumnihub_10.0_amd64/opt/alumnihub/.gitkeep
Normal file
0
alumnihub_10.0_amd64/opt/alumnihub/.gitkeep
Normal file
Reference in New Issue
Block a user