actions-runner/.forgejo/workflows/rsnapshot_bullseye.yml

30 lines
1.1 KiB
YAML

on:
workflow_dispatch:
inputs:
rsnapshot_version:
description: "rsnapshot version to use"
required: true
type: string
jobs:
package:
runs-on: docker
container:
image: docker.io/debian:bullseye
steps:
- name: install needed packages
run: apt update && apt install -y checkinstall rsync git autoconf curl liblchown-perl
- name: clone repo
run: git clone -b "${{ inputs.rsnapshot_version }}" --single-branch --depth 1 https://git.fucktheforce.de/mirror/rsnapshot.git workdir
- name: build
run: |
./autogen.sh
./configure --sysconfdir=/etc
make test
checkinstall --default --requires=liblchown-perl,perl,rsync --pkgname=rsnapshot --maintainer "lookshe@git.fucktheforce.de"
working-directory: workdir
- name: upload deb
run: |
curl -H "Authorization: token ${{ secrets.LOOKSHE_PACKAGES_TOKEN }}" --upload-file "rsnapshot_${{ inputs.rsnapshot_version }}-1_amd64.deb" "https://git.fucktheforce.de/api/packages/lookshe/debian/pool/bullseye/main/upload"
working-directory: workdir