Skip to content

Release 3.2.8-1 Debian (crossbuild/arm64) #28

Release 3.2.8-1 Debian (crossbuild/arm64)

Release 3.2.8-1 Debian (crossbuild/arm64) #28

Workflow file for this run

name: Release
run-name: Release ${{ github.ref_name }} ${{ github.event.inputs.version }} Debian (crossbuild/arm64)
on:
workflow_dispatch:
inputs:
version:
type: choice
description: Version
options:
- 3.x
push:
tags:
- 3.**
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-22.04
steps:
- name: Free up disk space
run: |
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/share/swift
df -h
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build packages
run: |
baseimage="debian:bookworm-slim"
echo "DEB_DIST=Debian/Bookworm" >> $GITHUB_ENV
if [ "${RUNNER_DEBUG}" = "1" ]; then
docker buildx build -o packages --build-arg buildoptions="cross github debug" --build-arg baseimage=${baseimage} --platform linux/amd64 -f .github/Dockerfile.crosscompile-arm64 .
else
docker buildx build -o packages --build-arg buildoptions="cross github" --build-arg baseimage=${baseimage} --platform linux/amd64 -f .github/Dockerfile.crosscompile-arm64 .
fi
sudo apt -y install apt-listchanges
apt-listchanges --latest=1 -f text packages/proxmox-backup-server_*.deb | sed -e '/^\(apt-listchanges.*\|[-]\+\)$/d' >> .github/PREBUILD.md
echo "DEB_VERSION=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: //p')" >> $GITHUB_ENV
echo "DEB_VERSION_UPSTREAM=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: \([0-9.]\+\)-[0-9]/\1/p')" >> $GITHUB_ENV
- name: Test packages
run: |
df -h
baseimage="debian:bookworm-slim"
docker buildx build --build-arg baseimage=${baseimage} --platform linux/arm64 -f .github/Dockerfile.installtest .
- name: Release packages
uses: ncipollo/release-action@v1
with:
artifacts: "packages/*.deb"
bodyFile: ".github/PREBUILD.md"
tag: ${{ env.DEB_VERSION }}
name: Version ${{ env.DEB_VERSION }} (${{ env.DEB_DIST }})
draft: true
makeLatest: false