33 lines
1.5 KiB
YAML
33 lines
1.5 KiB
YAML
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
coturn_version:
|
|
description: "Tag or Branch to use from coturn"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
package:
|
|
runs-on: docker
|
|
container:
|
|
image: docker.io/debian:trixie-slim
|
|
steps:
|
|
- name: install needed packages
|
|
run: apt update && apt install -y build-essential fakeroot devscripts default-libmysqlclient-dev default-mysql-client libsystemd-dev pkgconf libevent-dev libhiredis-dev libpq-dev libsqlite3-dev libssl-dev postgresql-client sqlite3 wget curl libmicrohttpd-dev
|
|
- name: download and install prometheus dependencies
|
|
run: |
|
|
wget https://github.com/digitalocean/prometheus-client-c/releases/download/v0.1.3/libprom-dev-0.1.3-Linux.deb
|
|
wget https://github.com/digitalocean/prometheus-client-c/releases/download/v0.1.3/libpromhttp-dev-0.1.3-Linux.deb
|
|
dpkg -i *.deb
|
|
- name: clone repo
|
|
run: git clone -b "debian/${{ inputs.coturn_version }}" --single-branch --depth 1 https://git.fucktheforce.de/mirror/coturn.git workdir
|
|
- name: update version
|
|
run: dch -l ~lookshe "build with prometheus"
|
|
working-directory: workdir
|
|
- name: build
|
|
run: debuild -b -uc -us
|
|
working-directory: workdir
|
|
- name: upload deb
|
|
run: |
|
|
curl -H "Authorization: token ${{ secrets.LOOKSHE_PACKAGES_TOKEN }}" --upload-file "coturn_${{ inputs.coturn_version }}~lookshe1_amd64.deb" "https://git.fucktheforce.de/api/packages/lookshe/debian/pool/trixie/main/upload"
|
|
|