Add builds for Proxmox VE 7 BETA

This change adds kernel builds for the Proxmox VE 6 BETA version that is
available now. These kernels are built using Debian Bullseye instead of
Buster.
This commit is contained in:
Fabian Mastenbroek 2021-06-29 14:44:56 +02:00
parent 09b09f0836
commit e7d77dd2a5
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85

View file

@ -9,12 +9,13 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
name: Build name: Build (${{ matrix.debian }})
runs-on: [self-hosted, build] runs-on: [self-hosted, '${{ matrix.debian }}']
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }} if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }}
strategy: strategy:
matrix: matrix:
debian: [buster, bullseye]
include: include:
- build_profile: 'generic' - build_profile: 'generic'
build_cc: gcc build_cc: gcc
@ -43,11 +44,11 @@ jobs:
PVE_KERNEL_CFLAGS: ${{ matrix.build_cflags }} PVE_KERNEL_CFLAGS: ${{ matrix.build_cflags }}
PVE_ZFS_CC: ${{ matrix.build_cc }} PVE_ZFS_CC: ${{ matrix.build_cc }}
- name: Upload Artifacts - name: Upload Artifacts
uses: actions/upload-artifact@v2-preview uses: actions/upload-artifact@v2
with: with:
name: debs-${{ matrix.build_profile }} name: ${{ matrix.debian }}-${{ matrix.build_profile }}
path: "*.deb" path: "*.deb"
publish: publish:
name: Publish name: Publish
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }} if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }}
@ -80,13 +81,17 @@ jobs:
tag: v${{ steps.format_release.outputs.release }} tag: v${{ steps.format_release.outputs.release }}
body: ${{ steps.format_release.outputs.changelog }} body: ${{ steps.format_release.outputs.changelog }}
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
artifacts: "artifacts/debs-generic/pve-headers-*.deb,artifacts/debs-generic/linux-tools-*.deb,artifacts/debs-*/pve-kernel-*.deb" artifacts: "artifacts/buster-generic/pve-headers-*.deb,artifacts/buster-generic/pve-kernel-*.deb,artifacts/buster-generic/linux-tools-*.deb"
- name: Release to CloudSmith - name: Release to CloudSmith
run: | run: |
pip install --upgrade cloudsmith-cli pip install --upgrade cloudsmith-cli
find artifacts/debs-generic \ find artifacts/buster-generic \
-name '*.deb' \ -name '*.deb' \
-not -name "*dbgsym*" \ -not -name "*dbgsym*" \
-exec cloudsmith push deb pve-edge/kernel/any-distro/any-version {} --republish \; -exec cloudsmith push deb pve-edge/kernel/debian/buster {} --republish \;
find artifacts/bullseye-generic \
-name '*.deb' \
-not -name "*dbgsym*" \
-exec cloudsmith push deb pve-edge/kernel/debian/bullseye {} --republish \;
env: env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}