Compare commits

..

2 commits
v0.0.1 ... main

Author SHA1 Message Date
733c53899d Update title 2025-01-28 23:09:27 +01:00
a3a621acd5 Improve title 2025-01-28 17:58:51 +01:00
8 changed files with 1 additions and 68 deletions

View file

@ -1,44 +0,0 @@
name: Build and Deploy Debian Package
on:
push:
tags:
- '*'
jobs:
build-package:
runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Parse distribution
run: |
if [[ "$GITHUB_REF_NAME" == *"@stable"* ]]; then
echo "DISTRO=stable" >> $GITHUB_ENV
else
echo "DISTRO=unstable" >> $GITHUB_ENV
fi
- name: Setup Debian Packaging
run: |
sudo apt-get update
sudo apt-get install -y devscripts debhelper dh-python dh-systemd build-essential
- name: Build Debian Package
run: |
debuild -us -uc -b
- name: Upload to Forgejo Debian Registry
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
PACKAGE_NAME="magicfw_0.1.0-1_all.deb" # Update version accordingly
DISTRO="debian" # e.g., bullseye, bookworm
COMPONENT="main"
curl --user "your_username:$FORGEJO_TOKEN" \
--upload-file ../${PACKAGE_NAME} \
"https://git.marcorealacci.me/api/packages/${{ github.repository_owner }}/debian/pool/${DISTRO}/${COMPONENT}/${PACKAGE_NAME}"

View file

@ -1,4 +1,4 @@
# Docker Magic Firewall Service: README.md
# Docker Magic Firewall
## Project Overview

5
debian/changelog.in vendored
View file

@ -1,5 +0,0 @@
magicfw ({{VERSION}}) unstable; urgency=medium
* Automatic release from Git tag {{TAG}}
-- Auto Release Bot <ci@forgejo> $(date -R)

12
debian/control vendored
View file

@ -1,12 +0,0 @@
Source: magicfw
Section: utils
Priority: optional
Maintainer: Marco Realacci <marco@marcorealacci.me>
Build-Depends: debhelper-compat (= 13), dh-python, python3-all
Standards-Version: 4.6.0
Package: magicfw
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}
Description: A magic firewall service
Automatic build from Git tag ${TAG}.

2
debian/install vendored
View file

@ -1,2 +0,0 @@
src/main.py usr/bin/
systemd/magicfw.service lib/systemd/system/

3
debian/rules vendored
View file

@ -1,3 +0,0 @@
#!/usr/bin/make -f
%:
dh $@ --with python3,systemd --buildsystem=pybuild

View file

@ -1 +0,0 @@
3.0 (quilt)