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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user