From eb2467b3089c8b43aa66b98efcde52e42a33e061 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Wed, 15 May 2024 20:55:09 +0200 Subject: [PATCH] Create build-debian.yml --- .forgejo/workflows/build-debian.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .forgejo/workflows/build-debian.yml diff --git a/.forgejo/workflows/build-debian.yml b/.forgejo/workflows/build-debian.yml new file mode 100644 index 0000000..8056227 --- /dev/null +++ b/.forgejo/workflows/build-debian.yml @@ -0,0 +1,28 @@ +name: Build Debian package + +# Configures this workflow to run every time a change is pushed to the branch called `release`. +on: + push: + branches: ['main'] + +# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. +# env: +# REGISTRY: git.marcorealacci.me +# USER: marco-private + +# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. +jobs: + build-and-push-image: + runs-on: docker + container: + image: catthehacker/ubuntu:act-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build Debian package + run: dpkg-buildpackage -us -uc -b --target-arch amd64 + + # - name: Call webhook + # run: curl -X POST ${{secrets.DEPLOY_WEBHOOK}}