From abebaa330172d1c5c6f73ea22ec20266b4eb3df4 Mon Sep 17 00:00:00 2001 From: marcorealacci Date: Tue, 9 Jul 2024 23:57:27 +0200 Subject: [PATCH] Aggiungi .forgejo/workflows/build-debian.yml --- .forgejo/workflows/build-debian.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 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..2148c60 --- /dev/null +++ b/.forgejo/workflows/build-debian.yml @@ -0,0 +1,32 @@ +name: Build Debian package + +# Configures this workflow to run every time a change is pushed to the branch called `release`. +on: + push: + branches: ['master', '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: + DISTRIBUTION: bookworm + COMPONENT: main + # 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: Install dependencies + run: apt-get update && apt-get install -y git tar fakeroot libssl-dev libcap2-bin autoconf automake libtool build-essential debhelper + + - name: Checkout repository + run: git clone --recursive https://github.com/RIPE-NCC/ripe-atlas-software-probe.git + + - name: Build Debian package + run: ./ripe-atlas-software-probe/build-config/debian/bin/make-deb + + - name: Push to registry + run: curl --user ${{ github.actor }}:${{secrets.REGISTRY_TOKEN}} --upload-file $(ls ../*.deb) https://git.marcorealacci.me/api/packages/packages/debian/pool/${{env.DISTRIBUTION}}/${{env.COMPONENT}}/upload